HI. I am making a game for a project in school. In it I need a spaceship to control but I want it to be smooth so that after your done touch let’s say the right button you’ll still rotate but lose momentum until you stop. Does anyone know how to do that.
I like to do it like
If right key is pressed i add to SomeVariable 0.5
And add condition to that event that checks if SomeVariable is not greater than 100
So if its above 100 it stops adding anything
AT THE SAME TIME i have another event that check if SomeVariable is greater than 0
If so i subtract from it 0.2
And lastly just to be 100% safe i make event that if SomeVariable is below 0 i set it to 0
And now in another event i simply set ship to spin with speed of SomeVariable and that is how i get what you want
So do I make it so it rotates the same number as the variable
Instead of number you put there variable
For example change Change angle of ship add Variable
And now all you need to do is find your numbers
WHere i wrote 100 0.5 0.2
These numbers you need to simply try if they are too high you set them to something lower and vice versa
I’m confused. Can you send a photo of the code
Can you try putting variable name into action to rotate ship instead of putting there number?
It won’t let me put a variable in it
Show me your events
…