How do I ...stop a sprite 'naturally'?

Get help using Construct 2

Post » Wed Oct 08, 2014 9:02 pm

Hello all,

I have a moving sprite that moves on a button press for left, right, up, and down. All works well except for the fact that the sprite stops 'suddenly'(Movement = 5). This seems unreal behavior. For example, if a car was travelling and a user hits 'STOP' it would not stop instantly but slow and then stop.

Is there a way to make a sprite stop in a more 'gradual' fashion?

Thanks all!
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Wed Oct 08, 2014 9:38 pm

How are you moving it? most of the movement behaviors have a deceleration setting. Otherwise, you just subtract from the speed until it's zero (causing deceleration).
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Wed Oct 08, 2014 9:51 pm

Hello,

I changed to '8Direction' and this seems more natural but is this behavior editable?

Thanks!
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Wed Oct 08, 2014 9:54 pm

Try it and see!

Depending on what you're wanting to edit, you might try custom movement behavior.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Wed Oct 08, 2014 10:22 pm

spacedoubt wrote:Try it and see!

Depending on what you're wanting to edit, you might try custom movement behavior.



Works great! thanks :)
B
15
S
2
Posts: 229
Reputation: 1,353


Return to How do I....?

Who is online

Users browsing this forum: jatin1726, Resslx and 37 guests