How do I stop a sprite from shaking

Get help using Construct 2

Post » Sat May 31, 2014 12:01 pm

Hello

I have a sprite following the mouse with these actions:

Every tick--> Sprite | Set angle toward (Mouse.X, Mouse.Y)
--> Sprite | Move forward "n" pixels

everything ok but when the sprite reaches the the cursor it starts shaking. How do i stop it?

thanks
B
9
S
1
Posts: 18
Reputation: 568

Post » Sat May 31, 2014 2:16 pm

You could try to use Physics behavior. Then use the action "Apply force towards angle". Make sure the sprite's Angle dumping is 0, so it won't turn around or shake.
B
24
S
4
G
1
Posts: 177
Reputation: 1,827

Post » Sat May 31, 2014 2:25 pm

Just add the condition: Compare two Values: distance(Sprite.X, Sprite.Y, Mouse.X, Mouse.Y) > n
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994


Return to How do I....?

Who is online

Users browsing this forum: beohs, tunepunk and 10 guests