Jump to content


Photo

MyVariablesDontWork


  • Please log in to reply
3 replies to this topic

#1 zombieombie

zombieombie

    GMC Member

  • GMC Member
  • 12 posts
  • Version:GM8

Posted 03 May 2012 - 05:05 PM

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.
  • 0

#2 GameGeisha

GameGeisha

    GameGeisha

  • GMC Member
  • 4203 posts
  • Version:GM:Studio

Posted 03 May 2012 - 05:09 PM

Initialize it in your creation event.
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.

  • 0

#3 zombieombie

zombieombie

    GMC Member

  • GMC Member
  • 12 posts
  • Version:GM8

Posted 03 May 2012 - 05:10 PM

Thanks gamegeisha i will try that and i will also try to move this to NovicaQ&A
  • 0

#4 Desert Dog

Desert Dog

    GMC Member

  • GMC Member
  • 6409 posts
  • Version:Unknown

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users