Quote:
Originally posted by Poogle
I need help with this it wont go up.
showimg index,@Font@@Taged: #v(this.tag),x,y;
changeimgcolors index,1,1,1,1.99;
changeimgzoom index,1;
to touch to go up:
if (playerenters) {
timeout = 0.1;
}
if (playertouchsme) {
time.tag+=1;
}
while (timeout) {
x = random(24,41);
y = random(7,14);
sleep 0.1;
}
|
A few things:
time.tag+=1;
should be this.tag since the showimg is read as this.tag)
secondly dont do while timeout
if (created) {timeout=.05;}
if (timeout) {timeout=.05;}
works fine
Third:
x = random(24,41);
that could make a number like 24.4322343545234072307
do
x= int(random(24,41));
that gets rid of the following decimals