Relative Content

Tag Archive for gml

How can I make the object not move the wrong way?

I am learning to use Game Maker, and I thought it would be a good project to make some basic plane movement script. I finished the part that would move the plane and then added the part that would make the plane glide slowly to a halt. The issue is that whenever I press the down arrow key, the plane will move, but it will glide to a halt moving up, not down. Here is the code. Note: plane_speed = 0, plane_acceleration = 0.1.