![]() |
sliding doors.
I need a sliding door script that slides over 3 tiles left. And another that slides over 3 tiles right.
I believe there was one like NPC Code: but i can't figure out how to get that to move exactly 3 tiles. :| (I want the stonemove.wav to play in it, too.) Thanks. |
Hello,
Make a Gani, Bye. |
Quote:
so thats dumb ^^ |
dont use a gani
use the simple command move it works like move x,y,dx,dy veeeeeeeeeeeeeeeeeeeeeeeeeeery simple |
yah move in incriments of .5's
|
do like
if(playertouchsme){ timeout=.1; } if(timeout&&x<10){ x+=.1; timeout=.1; } or something or u can use move command which would work good or if you use what i said u should prolly use a this.mode so that it doesnt slide all the way along the wall |
Just go buy one a "Jerry's"
|
[QUOTE]Originally posted by LiquidIce00
in ur quote u dont need { or } in single lined if's (just like in Delphi) so thats dumb ^^ [/QUOTE if u use a { then u have to use a } ******* |
he meant ....
Quote:
NPC Code: and secondly ... jumping to the conlclusion of granting someone ******* should take a little more evaluation then you put forth .... |
Sadly, Gastly is right.
You need to use a { when you use a ;} at the end, or else you'll get an error. |
if (created) {
show; } if (playertouchsme) { play stonemove.wav; x=x+1; sleep .2; x=x+1; sleep .2; x=x+1; } and if (created) { show; } if (playertouchsme) { play stonemove.wav; x=x-1; sleep .2; x=x-1; sleep .2; x=x-1; } Would that work? |
even better...
here is a sliging door.
// NPC made by Prozac //SLIDING DOOR if (playerenters){show; this.slide=0;} if (playertouchsme && this.slide=0) { this.slide=1; for (this.i=32; this.i>1; this.i--;) { setimgpart door.gif,0,0,32,this.i; if (this.i>2){sleep .05;} } for (this.h=0; this.h<32; this.h++;) { setimgpart door.gif,0,0,32,this.h; sleep .05; } this.slide=0; } except for the fll image mico-belch in the middle its quite snazzy. feel free to use this for anything use http://www.figmentcode.com/cgi-bin/npc1.pl my npc search engine of commands, liek search for img its useful |
how bout make a animated pic of it !!!
|
never heared of programs like animation shop?
then move the pic of the door a little bit to the side in every frame ;) |
Make things simple and use the move command :)
//Door that moves 3 tiles to the left. if(created) { move -3,0,1,; //Format is move dx,dy,time,params playsound stonemove.wav; sleep 1; move 3,0,1,; } You should be able to play around with that and make another door based on that script. Also, I believe there's a paramater that allows the door to move automatically in the other direction once the first movement is complete, so a sleep command wouldn't be needed. -Yin |
Quote:
|
Re: sliding doors.
Quote:
NPC Code: |
mandatory ...
Quote:
|
| All times are GMT +2. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.