We want to be forever checking if the mouse is clicked down, then we'll change Y by a certain number to fly upwards. Otherwise, we'll change Y by a different number to let the hero fall down.
They feel stiff and robotic! It'd feel more realistic if the hero had acceleration (flies up slowly, then picks up more speed) and gravity (falls down slowly, then picks up more speed.)
Why is this happening in our first version? Why do the controls feel too stiff and static?
The controls feel so static because they are static. The Y value of our hero is changing by a static, unchanging number. We need to create a variable, because variables can hold changing numbers.
Provide your email address for immediate project access