K
kafecadm
Guest
Hello:
Firstly I thank everyone for any support you guys could provide, I've been working with GMS 2 for a while now and It has been awesome so far. but right now I am a bit confused, I have the following code:
The problem is that if I hold the button it goes into the CHARGING state as it supposed to, but if i hit and quickly release it keeps going into the CHARGING and RELEASE states, and it doesn't attack.
I have compared my code with others in the forum, blogs, tutorials, etc and I know my code is coherent but for some reason it's not working.
I thank you guys again.
Regards
Firstly I thank everyone for any support you guys could provide, I've been working with GMS 2 for a while now and It has been awesome so far. but right now I am a bit confused, I have the following code:
Code:
if keyboard_check(ord("X"))
{
state = STATE.CHARGING;
}
else if keyboard_check_released(ord("X"));
{
state = STATE.RELEASE;
}
else if keyboard_check_pressed(ord("X"));
{
state = STATE.FIRE;
}
I have compared my code with others in the forum, blogs, tutorials, etc and I know my code is coherent but for some reason it's not working.
I thank you guys again.
Regards