How do I Enemy AI [SOLVED]

Get help using Construct 2

Post » Sun Oct 26, 2014 4:40 am

I looked through the examples and the forum and Im not 100% how to do this. I have an enemy and a player... semi top down view. The enemy is randomly spawned every 2 seconds. I want the enemy to move towards the player sprite. I do NOT want the enemy to rotate. Im sure its an easy thing to do, Im still not 100% competent in C2. I noticed in some examples and forums giving the enemy the bullet behavior and having rotate towards the players position moves the enemy towards the player, but I do not want it rotating. I want more of an old school zelda style movement.
Last edited by p0tayters on Sun Oct 26, 2014 5:20 am, edited 1 time in total.
B
12
S
2
Posts: 57
Reputation: 799

Post » Sun Oct 26, 2014 5:02 am

hi, try using the "set angle of motion" and activating/deactivating the "set angle" in the properties of the behavior
Image
B
57
S
13
G
6
Posts: 271
Reputation: 12,103

Post » Sun Oct 26, 2014 5:20 am

danuyos wrote:hi, try using the "set angle of motion" and activating/deactivating the "set angle" in the properties of the behavior

I got it, I used the 8 direction movement and set it up to move towards the players x and y positions so the enemy simulates input where there isnt any input :lol:
B
12
S
2
Posts: 57
Reputation: 799


Return to How do I....?

Who is online

Users browsing this forum: Exabot [Bot], FacuLNF and 68 guests