OKay so if i posted this in the wrong place please tell me so i can move it and well the problem is that on the Scrolling Shooters tutorial it says to do many things with the variable can_shoot and when i tried to test it out it says that the variable can_shoot is unknown. I tried to check the view all built in variables and can_shoot is not one of them. Please tell me how to fix that.
MyVariablesDontWork
Started by zombieombie, May 03 2012 05:05 PM
3 replies to this topic
#1
Posted 03 May 2012 - 05:05 PM
#2
Posted 03 May 2012 - 05:09 PM
Initialize it in your creation event.
GameGeisha
Edit: This is indeed the wrong place, you should have put this in Novice Q&A.
can_shoot = false;You need to give every custom variable a starting value first, before you can use it elsewhere.
GameGeisha
Edit: This is indeed the wrong place, you should have put this in Novice Q&A.
Edited by GameGeisha, 03 May 2012 - 05:09 PM.
#3
Posted 03 May 2012 - 05:10 PM
Thanks gamegeisha i will try that and i will also try to move this to NovicaQ&A
#4
Posted 03 May 2012 - 10:05 PM
Thanks gamegeisha i will try that and i will also try to move this to NovicaQ&A
I'll do that.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











