I
Ivankov
Guest
I have a global variable called global.fuel.
I want it so while holding down the game pad button gp_face1 it will decrease global.fuel by 1 every second.
At the moment I have the following and it works well at making my ship fly.
I want it so while holding down the game pad button gp_face1 it will decrease global.fuel by 1 every second.
At the moment I have the following and it works well at making my ship fly.
Code:
if gamepad_button_check_pressed(0, gp_face1)
{vspeed=-4
global.ongrav=0
}