Hai!, And Hello to all of you.
I just got gary's mod :) plus I'm working on an rawrsome game.That i need help in. You see I'm trying to make a weapon swaping system. Anyone think they could help?current variables.
Quote:
global.gun = 0 //MAIN GUNglobal.gun0 = falseglobal.gun1 = falseglobal.gun2 = falseglobal.gun3 = falseglobal.gun4 = falseglobal.gun5 = falseglobal.gun6 = falseglobal.gun7 = falseglobal.gun8 = falseglobal.gun9 = false
I did this for my game, Paroxysm:
CREATE:global.weapon global.maxweapon = 11 //Number of weapons you havePLUS ONE WEAPONif global.weapon < global.maxweaponglobal.weapon += 1if global.weapon = global.maxweaponglobal.weapon = 0MINUS ONE WEAPONif global.weapon > 0global.weapon -=1if global.weapon = 0global.weapon = global.maxweaponSTEPif global.weapon = 0global.gun = 1elseglobal.gun = 0if global.weapon = 1global.gun0 = 1elseglobal.gun0 = 0//ETCParoxysm: http://gmc.yoyogames.com/index.php?showtopic=423293Download: http://willhostforfood.com/?Action=download&fileid=60764…you're aware that false effectively IS zero, yes?
hmh.. i didn't not know.
I suggest you use an array before someone kills you.
I have a really good one. I may send it to you tomorrow.
Yeah, heed sk8's advice. Switch to an array asap.
do this:
…you're aware true is effectively IS one, yes?
I myself wasn't aware of this until tomorrow.
not effectively, it IS 0 and 1.