How do I Create a flying enemy

Get help using Construct 2

Post » Fri Feb 27, 2015 11:41 am

Guyz,

I am making a platform game and there I want to add a flying enemy.
I want-
1. When my player is near to flying enemy it changes it's direction towards enemy
2. Else, it keep on moving forward and backward in a defined area.

For this I have added Sine behavior to my enemy and it's properties Movement: Horizontal and when enemy collide with an invisible sprite (like edgeDetector) it is set mirrored.
But, when my enemy collide with wall it is not set mirrored/changes it's direction. I also did the same with adding bullet behavior in place of Sine behavior.
** All the other properties are also checked like -
collision: enabled (Done)
Z order (both enemy and wall are on 'Main' layer)

Please help me out and provide me an example similar to this.

Thanx a lot!
B
5
Posts: 10
Reputation: 257


Post » Sat Feb 28, 2015 6:41 am

Message: Nidhi is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Lordshiva1948 wrote:You will learn more from this tutorial


Thanx Lordshiva1948...!! But what I want is not in this tutorial.... can you tell me how to create a flying enemy?
B
5
Posts: 10
Reputation: 257

Post » Sat Feb 28, 2015 9:46 am

Nidhi is this how you want? If not pm me
You do not have the required permissions to view the files attached to this post.
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Sun Mar 01, 2015 8:43 am

Lordshiva1948 wrote:Nidhi is this how you want? If not pm me


Thanks! But, I think this demo is of new version of construct 2, My C2 is lates updated to r197. Can you provide me logic or snapshots of this demo!
B
5
Posts: 10
Reputation: 257

Post » Sun Mar 01, 2015 9:46 am

Nidhi you can download new version for free
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Sun Mar 01, 2015 9:50 am

Nidhi here is logic snapshots
You do not have the required permissions to view the files attached to this post.
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Sun Mar 01, 2015 11:08 am

Thanx a lot!! It is working now, But now my enemy is facing upside down. Can you tell me how to make it flip when it collide with the Trigger.
B
5
Posts: 10
Reputation: 257

Post » Sun Mar 01, 2015 11:41 am

..
Last edited by Nidhi on Sun Mar 01, 2015 11:44 am, edited 1 time in total.
B
5
Posts: 10
Reputation: 257

Post » Sun Mar 01, 2015 11:42 am

PFA, as my project size is big, here is part of my game.

Please tell me how to set Enemy Angle towards player as it is in Enemy's Range.

TIA
Nidhi
You do not have the required permissions to view the files attached to this post.
B
5
Posts: 10
Reputation: 257

Next

Return to How do I....?

Who is online

Users browsing this forum: evillair, mongoose665 and 60 guests