Brief Speed Increase when 8Direction hits Solid?

Discussion and feedback on Construct 2

Post » Sat Jun 21, 2014 2:34 am

Hi folks.

Working on my project, I have noticed a small but noticeable problem. My animation states for movement are based on whether the sprite is currently moving. When the sprite hits another one that is solid while simulating control in that direction, it stops and speed reduces to 0 as expected. But in the frames afterwards, my sprite is gaining speed before being reduced to 0 for good! This causes it to revert to the moving animation very briefly, creating a sort of 'judder'.

I expected this to be a small increase in speed, but my sprite is actually gaining almost 33% of it's max speed in these few frames (tested using stepping in debug)! I can't put in a rule to stop moving animation for that amount speed. Would I need to do something like collision checking ahead of time via events to prevent this?

I'm not entirely sure if this is a bug or not. My thought is that maybe the solid is shoving the the sprite out a bit too far and then it has a bit of room to move closer. Some advice if anyone has encountered this would be awesome!
B
4
S
1
Posts: 4
Reputation: 258

Return to Construct 2 General

Who is online

Users browsing this forum: Kyatric and 12 guests