![]() |
Rain
I am trying to script rain. Here is what I used for one drop:
NPC Code: In rain.txt I have: NPC Code: I paste the NPC a couple times and the NPC is always on the coordinate (1,1). How can I fix this? |
NO NO NO NO!!!!!
if (created) { setbackpal dusk7.png; timeout=0.05; } if (timeout) { this.x = (random(0,64)); this.y = (random(0,64)); putnpc rainimage.gif,rain.txt,this.x,this.y; timeout=0.05; } |
Ok, it works, but lags to hell. Does anyone have a different way of doing it?
|
Hmm...
NPC Code:And now I want both of you to swear never to use putnpc again, thanks. |
Thanks, but it doesn't work =\
I set the flag IsRaining and went into the level, the backpal sets, but there isn't any rain =\ |
*AlphaFlame*
Hrmm... I just usually use something like this for rain... (it's 8 a.m., I've been up for 15+ hours, I'll give a better script later :P, so shuddup :P) if (israin){ timeout=.05; this.dripy=(how many drops you want at any 1 time); } if (timeout){ for (this.i=0;this.i<this.dripy;this.i++) { showimg this.i,(the rain gif),random(0,64),random(0,64); } if (this.i=this.dripy) this.i=0; } |
Quote:
|
Quote:
|
perhaps he just doesn't have the images splash1-x.gif
|
no i told him how to make it random and he put it in the wrong place
|
Quote:
|
| All times are GMT +2. The time now is 07:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.