How to change max speed of object when in different action states (4.5.9)

For my game I need to implement a charging attack similar to in Wario Land or Pizza Tower. For this to work I need to find a way to increase my character's speed when in that state. How would I do this?
 

smilehero65

Active member
For my game I need to implement a charging attack similar to in Wario Land or Pizza Tower. For this to work I need to find a way to increase my character's speed when in that state. How would I do this?
I think this may serve you as a base:

 
Looks good, but due to the nature of the attack the player would have to change states for collision purposes. I can probably figure it out when I play around with it tomorrow though. Guessing I’d just need to insert the change action state macro somewhere in that script
 
Also I assume the issue with speed lies that there is a place where is not reset(?)
There is no problem with the speed, but if you watch you’ll notice that sometimes the dash input forces the object in the wrong direction (while still animating in the correct direction). I believe it shows the inputs I’m pressing in the bottom right, for reference.
 
Looking back yeah, the frantic movements in the video might give off the wrong idea. I was just trying to recreate the previously mentioned bug (wrong direction), which you can see right at the end.
 
With that at least you will not be able to change directions while dashing...which will solve a lot of things!
That did not work. It prevents the wrong direction glitch, but you can still change directions while dashing, and now the dash is much slower (though that side effect might be a good thing, idk yet).
 

smilehero65

Active member
That did not work. It prevents the wrong direction glitch, but you can still change directions while dashing, and now the dash is much slower (though that side effect might be a good thing, idk yet).
Did you apply it on the following inputs:

~ MoveLeft & MoveRight
~ StopMoving
~ ChangeActiontoMove
~ChangeActiontoStop

(I assume those are the inputs for moving... I used a more simplified version of them)
 
Top Bottom