How do I move and stop in front of another object

Get help using Construct 2

Post » Thu Aug 24, 2017 4:28 am

Hello everyone, I'm trying to create the fire emblem battle system with platform behavior and I'm not succeeding to make a character go to the enemy to stop it and stop. It jumps ahead or remakes the movement commands again pushing the enemy out of the layout.
B
6
Posts: 4
Reputation: 258

Post » Thu Aug 24, 2017 4:39 am

Try to create a condition for the movement. "If enemy move => 5px -> set position -> self.XY"
SoftWork Group Ltd

Co-founders:
Robert Matik (UK Division)
Lukas Zyrek (CZ Division)

07399443703 (UK Division)

International(at)softworkgroup.wtf - for basic questions and information
Office(at)softworkgroup.wtf - email for questions about team and proposals
B
16
S
5
G
1
Posts: 49
Reputation: 1,656

Post » Fri Aug 25, 2017 10:38 pm

thanks dude
B
6
Posts: 4
Reputation: 258

Post » Sat Aug 26, 2017 1:29 pm

How about you simply measure the distance and stop the object if it's too close to the other one?
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Mon Aug 28, 2017 3:16 am

I managed to fix this, so I can not get him to jump back to an original position. For the sprite to come back is jumping
B
6
Posts: 4
Reputation: 258


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 70 guests