Help with making a speed system like in sonic games!

I already have a way to do it but it is kinda messy and need to see if there is a simpler way?

1 Like

Screenshot 2024-12-28 7.58.25 PM

Make a Key repeating and then add numbers that cap up to whatever number you want then when the player releases the button the player goes fast and the player cannot move while pressing a key

I think maybe perhaps you can use an easing function

@Geo_The_Hedgehog could you help him out?

I think geo made something like that.

Hi! SFU dev here. The main problem I see with your code is that you’re using the velocity behavior. If you want a gradual increase in speed, what you should be using is the Push Motor. You can find it in the components tab in the behavior editor.

I always encourage people having problems like this, to just play around with it and see what works. But I can tell you straight up that you probably shouldn’t be using the velocity behavior for the base movement.

Think of it this way: Velocity SETS your speed to a certain number, while the Push Motor ADDS MOMENTUM to your current speed.

2 Likes

@Nazofan456 you’re welcome