Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-19-2005, 04:33 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Player/NPC movement

I am so happy right now. I have just completed a movement class with functions movedx(dx,dir,object) and movedy(dy,dir,object).
dx,dy- total distance
dir- direction moving (nonvector 0,1,2,3)
object- object being moved (player,this,npcs[index])

It has a perfect wall check and will work the same within other movement systems that acknowledge walls. Meaning we at Classic will now be able to very easily build different kinds of movement. I don't think Master Storm has seen it yet. Once Classic has a few quests up, you should all come see.

I'd show you the code, but I'm feeling too greedy and I want Classic to be better off with it. It is less than a single page, amazingly (well, until I put the functions for both serverside and clientside). It's great for baddies and player movement manipulation. Now I wonder if anyone feels challenged to create something similar, but even better.
Reply With Quote
 


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:12 PM.


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