i have a game jam and thought of a good mechanic but need help, i need to detect whether the character / players movement is smooth or not, so if the character has smooth movement nothing happens but if the player for examples does a sharp turn going fast then the player is punnished
Hey @paul.e07! Welcome to the forums!
So we need to know what you mean by smooth, could you go into more detail there? By context I’m thinking you are saying mostly forward movement with light turns, but not entirely sure.
One thing you could do would be to use a timer with a loop time of between .1 and .3, and check “Get Player Forward” against the previous player forward, then set the variable as “Old Player Forward” to continually check that, and if it’s outside of a certain range (using >= and <= checks) that should get you the information you’re needing!
Hope that helps!
1 Like