Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-23-2001, 06:24 AM
Andor_GP1 Andor_GP1 is offline
Registered User
Join Date: Nov 2001
Posts: 35
Andor_GP1 is on a distinguished road
scripting question

Ok i made a right outline of a moving engine in whihc up is forward, down is backwards, and left and right are turn (8 directions all together) (while the variable this.type=1 they will continue to move foward unless its set back to 0 (by reversing))
now how would i make a delay so it would only afect the rate at which they can turn? i tried tiemout but that afects their constant moving pace, i don't want them to stop moving while they turn.
__________________

~Pikaz
(formually used account Bravo_LAT-Admin)
~Banana Admin at Andor XD
  #2  
Old 12-23-2001, 06:57 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
Maybe you could implement a turning speed variable?
  #3  
Old 12-23-2001, 07:05 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
You just need to add/subtract less from the players X/Y when they are pushing the left or right arrows then you are now. That will make them turn slower.
__________________
Eric Kraft
  #4  
Old 12-23-2001, 07:40 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
8 directions = more advanced than unlimited directions...
  #5  
Old 12-24-2001, 03:59 AM
Andor_GP1 Andor_GP1 is offline
Registered User
Join Date: Nov 2001
Posts: 35
Andor_GP1 is on a distinguished road
what do you mean more advanced?

o and i used a turn variable that goes up with the timeout. thanx. that was alot easier than i thought lol.
__________________

~Pikaz
(formually used account Bravo_LAT-Admin)
~Banana Admin at Andor XD
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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:48 AM.


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