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 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
  #2  
Old 10-19-2005, 07:26 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Oh, well congratulations.
Reply With Quote
  #3  
Old 10-22-2005, 03:22 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
Does this mean I haven't inspired anyone to script for reusability?
Quote:
Originally Posted by Lance
Oh, well congratulations.
Reply With Quote
  #4  
Old 10-22-2005, 04:27 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally Posted by jake13jake
Does this mean I haven't inspired anyone to script for reusability?
Sorry, sadly no.
__________________
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 08:46 PM.


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