![]() |
Dance Script
i have a dance script, i want to do this:
when player enter in the level, only A button will appear and when u press A u start to dance and when u stop pressing, u stop,,, how can i do it? |
just use disableweapons;
then just do a keydown for the A button |
yah and for the dance script you would do a timeout with random sprites going on right? and random positions? i am just wondering
|
sigh, i have given up hope of forcing the population to learn to do it themselves, here you go:
if (playerenters) { timeout=.05; disableweapons; } if (timeout) { if (keydown(6)) playersprite=int(random(0,40)); timeout=.05; } |
Quote:
|
Randomsprites = ghay
|
Quote:
|
True Dat!
Quote:
|
Um, if I were you, I'd change the (0,40) to (0,39) because no one wants to see thierself dead every .1 seconds.
|
Oh, yes, and try putting that in a for loop to make it where when the player is in a certain area he will dance. just using a button isn't..natural. for(playerx<15;playery>10;playerx>10&&playery<5){ code here;}
|
not a very bright one are you?
with random(0,40) the highest possible number is 39.99999999999999999999999999999999999999999999 which int() will cut off to 39, so technically, you would only see sprites 0-39. |
then you would be swimming too and that is the ****ed thing...
|
~AlphaFlame~
... set an array of the sprites you do want, then do a random for the arrayed sprite to show... this.sprites={1,2,3,4,5,9,14,20}; this.show=int(random(0,arraylen(this.sprites))); playersprite=this.sprites[this.show]; *passes out the dunce caps* |
even simpler
NPC Code: *hands ~Alpha Flame~ a dunce team baseball cap.* |
AND even simpler yet
setani dance,;
(for the slow ones, that means make a gani and forget about the sprites, THEY ARE OBSOLETE) |
Quote:
|
| All times are GMT +2. The time now is 07:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.