How do I move the player sprite towards a spawned object

Get help using Construct 2

Post » Thu Apr 03, 2014 1:00 am

This is a follow up to an older question, I tried tweaking the value but it doesn't have the right pull effect.

I thought of trying under pathfinding, drawing a straight line between the player object and the spawned instance of the other object but I'm still at a lose of how the movement actually takes place.

Simple visual for the desired behavior

[P] -------> [S]
B
3
Posts: 6
Reputation: 187

Post » Thu Apr 03, 2014 4:18 am

Use the bullet behavior, Set to 0. and in the Events when your ready to move the player set the bullet speed to the desired amount. You could also try Set angle to object, Sprite.X , Sprite.Y Change "Sprite" to the objects name that you want to move to.
Please Support Ocean Explorer.
http://igg.me/p/735007/x/6915815
B
14
S
4
G
3
Posts: 125
Reputation: 2,645

Post » Thu Apr 03, 2014 9:41 pm

Would this behavior still work if I was doing an auto runner style game? I think the preset movement of the player is messing with this suggestion.
B
3
Posts: 6
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests