View Single Post
  #6  
Old 08-07-2001, 12:43 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
woops I found a problem..
if you change playerx or playery it re-enables def movement.
so put this for the engine
NPC Code:

//the engine part
function move() {
for (this.i=0;this.i<this.SpacesToMove;this.i=this.i+t his.PlayerSpeed) { //loop
playerdir=this.PlayerDirection; //set direction of player
setplayerprop #c,#s(playermsg); //display message
playery+=vecy(this.PlayerDirection)*this.PlayerSpe ed; //move y
playerx+=vecx(this.PlayerDirection)*this.PlayerSpe ed; //move x
setani walk,; //set animation to walk
sleep .05; // sleep
disabledefmovement; //disable movement
}
enabledefmovement; //re-enable movement
setani idle,; //idle player animation
}


(just moved the disabledefmovement in the loop)

and LilNiglet what was that post for?!?
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote