Thread: Jump!!!
View Single Post
  #1  
Old 07-28-2001, 05:40 AM
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
Jump!!!

bored so in 10 min I made a little jump code =)
after I eat im gonna work on jumping forward and back or so..
NPC Code:

// NPC made by LiquidIce - Buzy liek always
//jumping

//jump height
this.jumpheight=16;

if (playertouchsme) {
toweapons jump;
}

if (weaponfired) {
disabledefmovement;
playersprite=23;
this.jumpcount=this.jumpheight-1;
while (this.jumpcount>(this.jumpheight-(this.jumpheight*2))) {
if (!onwall(playerx+1.5,playery-this.jumpcount/this.jumpheight)) {
playery-=this.jumpcount/this.jumpheight;
}
else {
if (this.jumpcount>=0) {
putleaps 2,playerx+1.5,playery;
this.jumpcount-=this.jumpcount*2;
}
}
this.jumpcount-=1;
sleep .1;
}
playersprite=0;
enabledefmovement;
}

__________________
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