pls help me some1

Anonymous
24 Jul 2003, 16:12
i made status variable (time left : ! sec) everything is fine in the game it show time left 0 sec but i need to find a way to add 15 when i enter a room and when im not in that room put the variable to 0 how do you add and substract in variable pls i realy need help im getting so angry :x !!!

Alex
24 Jul 2003, 17:03
To add 15 to a variable, in QDK use the "Set a numeric variable" command from the Variables category (or "Set a variable" since you will have already set the variable up - it doesn't matter which you choose). Then enter the variable name, for example "mynumber" (without the quotes). Then in the variable contents box enter this:

%mynumber% + 15

If you've coding by hand then the corresponding ASL is "set <mynumber; %mynumber% + 15>".

Anonymous
24 Jul 2003, 17:53
thanx a lot i was getting so angry but now i got another problem :cry: how do you do to minus 1 each sec i mean i enter the room the variable is set to 15 and each sec it minus 1 (15..14..13..12...) mynumber;%mynumber%-1 with a timer set to 1 sec interval doesnt work ooh and thanx again :D QDK rocks !!! but when i will find the way to use it at 100% it will rock much more !!!

GameBoy
24 Jul 2003, 18:21
%mynumber% - 15

use ASL language, you can make better games if you learn ASL, but then you gotta learn QNL if you wanna make them online compatable too

Anonymous
24 Jul 2003, 20:47
Thanx !!! :D now it work great

GameBoy
24 Jul 2003, 22:13
hehe, well atleast ALL my ASL coding knowledge hasnt gone lol