WTF!?!?

Posted by SumoDeUno on Oct. 23, 2006, 5:38 p.m.

Now that I've got your attention(hopefully) I'm kinda putting this here to see if people will actually look at this. Well anyway, does anyone know of a way to have two objects keep track of one variable (like ammo for a left and right object)?

Comments

ludamad 18 years, 2 months ago

Heh, just make one of them make the variable, and the other reference it with objectname.variable.

Requiem 18 years, 2 months ago

Unlike luda, I'm less forgiving.

No front page for you!

Dom 18 years, 1 month ago

dont worry bout jakex use a global variable to do that all you gotta do is put global.(variable name) eg global.ammo

but when refering to it in another object you still gotta say global. ok hope you get this and it helps