Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-26-2001, 04:01 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

You mean something like this?

if (playerenters) {
timeout=.05;
}
if (timeout) {
playerdir=playerdir+1%3;
this.ag = arctan((playery-y)/(playerx-x));
this.x = playerx-cos(this.ag)*.15*(x>playerx? -1 : 1);
this.y = playery-sin(this.ag)*.15*(x>playerx? -1 : 1);
playerx=this.x;
playery=this.y;
timeout=.05;
}

P.S - Yes, the trig was lifted from Kyle's FollowPlayer script... Don't kill me x.x
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:34 AM.


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