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-29-2001, 01:54 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Player Walk Faster

How do you make people walk faster? is it like:
if (keydown(UP KEY)) {
playery playerx-1;
}
if (keydown(DOWN KEY)) {
playery playerx+1;
}
if (keydown(LEFT KEY)) {
playery playery-1;
}
if (keydown(RIGHT KEY)) {
playery playery+1;
}
Reply With Quote
  #2  
Old 07-29-2001, 02:06 AM
freddyfox freddyfox is offline
Banned
freddyfox's Avatar
Join Date: Mar 2001
Posts: 6,705
freddyfox is on a distinguished road
Re: Player Walk Faster

Quote:
Originally posted by Poogle
How do you make people walk faster? is it like:
if (keydown(UP KEY)) {
playery playerx-1;
}
if (keydown(DOWN KEY)) {
playery playerx+1;
}
if (keydown(LEFT KEY)) {
playery playery-1;
}
if (keydown(RIGHT KEY)) {
playery playery+1;
}
That would make them walk through walls.
Reply With Quote
  #3  
Old 07-29-2001, 02:36 AM
omni-m00gle omni-m00gle is offline
delete all proofs
omni-m00gle's Avatar
Join Date: Apr 2001
Location: United Kingdom
Posts: 2,528
omni-m00gle is on a distinguished road
Send a message via AIM to omni-m00gle
try adding some onwall..
(is too lazy to type it up)
__________________
-+ Malak +-

Never taste of the fruit...

Quote:
Originally posted by Stefan
on andor i got jailed for
impersonating me
Reply With Quote
  #4  
Old 07-29-2001, 02:48 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
basically do this

NPC Code:
if(created && !isweapon)
toweapons run faster;
if(playerenters&&isweapon)
timeout=0.05
if(timeout){
if(!onwall(playerx,playery)&&!onwall(playerx+3,pla yery)&&!onwall(playerx,playery+3)&&!onwall(playerx +3,playery+3)){
if(keydown(0)){playery-=0.5}
if(keydown(1)){playerx-=0.5}
if(keydown(2)){playery+=0.5}
if(keydown(3)){playerx+=0.5}
}
timeout=0.05;
}



humm well I just made that... dunno if it works... (you might also want to add something were like it checks if they fired the weapon or not...)
(there also might be small glitches in the onwall but it is close enough)
__________________
Thanks,
-KJL
Reply With Quote
  #5  
Old 07-29-2001, 03:22 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
no KJS ur onwall would be totally messed up ..
do onwall with array but since poogle you are dumb and I dont like you I wont give you the code cuz I had made a 100% perfect onwall one.
__________________
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
  #6  
Old 07-29-2001, 03:53 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
These dont work offline do they?
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 03:58 AM.


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