View Single Post
  #5  
Old 12-08-2001, 10:10 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to ShockwaveISTHEBEST
well move is just
move x,y,speed,options
you know x and y (hopefully) ,and speed is the ammount of seconds to do it in, and there are a ton of options so for now just use this.
to get it to loop do this for example

you start out with this:

if (created) {
setimg light2.png;
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}


then you just add your move in like this:

if (created) {
setimg light2.png;
dontblock;
}

if (timeout) {
move 10,10,2,4 //the 4 in the options slot makes it stop at a wall
timeout=.5

//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}

Then it will not go on walls it will move 10 tiles and loop.
Reply With Quote