Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 07-28-2001, 10:31 AM
BeZeRkEr BeZeRkEr is offline
what
BeZeRkEr's Avatar
Join Date: Jun 2001
Posts: 1,863
BeZeRkEr is on a distinguished road
Send a message via ICQ to BeZeRkEr Send a message via AIM to BeZeRkEr

it'd be better if the shadow stayed and he moved.. and if he didn't go so high
the sprite sucks too
Reply With Quote
  #3  
Old 07-28-2001, 10:40 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
WHY DO YOU USE SLEEP? USE TIMEOUT LIKE ANY SANE GRAAL SCRIPTER.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #4  
Old 07-28-2001, 12:17 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
Quote:
Originally posted by BeZeRkEr

it'd be better if the shadow stayed and he moved.. and if he didn't go so high
the sprite sucks too
yeah i noticed that .. I put a showimg with some shadow gif i found. ne1 can do that takes .2 seconds.. and i dunno ne good sprites..

Quote:
Originally posted by konidias
WHY DO YOU USE SLEEP? USE TIMEOUT LIKE ANY SANE GRAAL SCRIPTER.
Because this script freezes the player and he cant move until the loop is done so why use a timeout ? make it useless and add more variables for no reason.
__________________
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
  #5  
Old 07-28-2001, 12:41 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Stop spaming around
Reply With Quote
  #6  
Old 07-28-2001, 01:50 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
Quote:
Originally posted by Poogle
Stop spaming around
YOU ARE THE ONE SPAMMING IN EVERY THREAD SAYING ''STOP SPAMMING''
blah!!!!!!!
__________________
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.