How do I move an object towards a player

Get help using Construct 2

Post » Sat May 07, 2016 12:01 pm

Hello everyone,

i would like to know what's the best way to force an object to move towards the player.

The game is a 2d shooter,and the enemies spawn an experience orb on death,this orb should move towards the player.

I tried this:
Image

but if the orb miss the player it start spinning around like crazy.

Thanks
B
23
S
5
G
1
Posts: 40
Reputation: 1,281

Post » Sat May 07, 2016 12:20 pm

@DeadByte : This should do the trick:

Image

Just change the value of the local variable to change the speed.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857


Return to How do I....?

Who is online

Users browsing this forum: jatin1726 and 29 guests