Get enemy to walk between two positions?

Get help using Construct 2

Post » Thu Jul 19, 2012 1:50 pm

Hi, I need the enemy in my platformer to patrol certain platforms, just walking left to right. ATM I've set it up so that if they hit an invisible sprite to turn and change directions. Problem with that is I need to set up events for each individual sprite (or else when one touches the blank sprite they all change direction).

It doesn't seem to be very proficient so I was wondering if there was another way of doing it? We had way-points in CC but none in C2, they would be ideal.

Cheers.
B
19
S
5
G
4
Posts: 208
Reputation: 3,960

Post » Thu Jul 19, 2012 3:55 pm

I'm guessing you're using a global variable, try using an instance/local variable to control direction instead.

Also, check out Ashley's platform game tutorial, it has the enemy unit movement you are after on page 7.
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
27
S
7
G
4
Posts: 314
Reputation: 4,928

Post » Thu Jul 19, 2012 5:22 pm

Aaah yes! I never thought of local variables. I owe you one, cheers!
B
19
S
5
G
4
Posts: 208
Reputation: 3,960


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt and 11 guests