![]() |
Stuck
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; } |
Re: Stuck
Quote:
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 |
It will have to be while or it wont jump around and it still doesnt go up..
|
hmm, try removing the #v()
|
Re: Re: Stuck
Quote:
|
Re: Re: Re: Stuck
Quote:
|
Quote:
|
this works perfectly:
if (created||timeout) { show();} function show(); {showimg 1,@Font@Taged:#v(this.tag),x,y; timeout=.1; } if (playerenters) { timeout = 0.1; } if (playertouchsme) { this.tag+=1; } while (timeout) { x = random(24,41); y = random(7,14); sleep 0.1; } |
now this wont show the score at the end and change it to 0if (playerchats&&strequals(#c,start)) {
playerx=31; playery=12; set tagstart; } while (tagstart) { sleep 60; say2 Your score is:#b #v(this.tag); playerx=31; playery=15; this.tag=0; unset tagstart; } |
Quote:
playerx=31; playery=12; set tagstart; } while (tagstart) { sleep 2; say2 Your score is:#b #v(this.tag); playerx=31; playery=15; sleep.01; this.tag=0; unset tagstart; } |
evil laugh inserted here
|
Quote:
|
kai's right
you shouldn't use a while loop with timeout, its just nasty |
Re: Stuck
showimg index,@Font@@Taged: #v(this.tag),x,y;
changeimgcolors index,1,1,1,1.99; changeimgzoom index,1; ^-- WTF is that about? i think that it looks good the way kaimetsu wrote it...maybe pastaustin is wrong? i don't see any reason it wouldn't work tho. ;). If your doing showimg, use this.x and this.y, that way the npc isn't moving all around... |
1 Attachment(s)
Lol...come back here.... (sorry...such a worthless post, but it amused me...)
|
All times are GMT +2. The time now is 10:38 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.