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: 174
Reputation: 1,821

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
21
G
221
Posts: 3,649
Reputation: 124,227


Return to How do I....?

Who is online

Users browsing this forum: vegapomme27, Yahoo [Bot] and 8 guests