View Single Post
  #26  
Old 01-29-2006, 05:02 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
Nobody refers to my movement script? WHY?!?!? probably because it's GS2, right? Or that I accidentally rescripted a bug into it?

http://graal.net/snippet/detail.php?type=snippet&id=88

Give me a minute and I'll remove the bug from it that moves the player... just a tad to far. Oh yea, and the NPC detection for this part of the movement system isn't complete yet as it needs to be able to detect dontblock NPCs (which Stefan said would be in next version). I'd suggest some customization when it comes to when player's are blocking (right now detects all players blocking, incl. when paused and when in noPK zone, but the main reason is for customizable player blocking).

What's good about my movement functions is that they can be integrated with (used on top of) other movement systems. You just need to put some kindof invalid thing for the tiletypes it checks for walls. I'd suggest -20 because -1 and -2 are players and NPCs respectively

or wait, no, you'd need to uhh... put in all the tiles that block now... not an invalid one. However, you can just find-replace wherever it says "onTiles(tiles," to "onwall2(" and you'll be able to integrate it. I just changed it to use my onTiles function for more dynamic use.

Last edited by jake13jake; 01-29-2006 at 05:45 AM..