Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-24-2007, 04:17 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Bare Bones Movement

Started a thread about this in the scripting section, and I've completed it for now, so I thought I'd post it. This is a bare-bones movement system. So all it can do is:
> lets you walk
> Lets you sit and swim
> wall detection is near-perfect, at ANY speed. I have tested this on a gmap at the speed of 10 tiles/0.05 second and it was flawless. I wouldn't even pass through a single-width tile. It's really fun on a gmap :P
It even words at odd speeds and such.

Anyways, here's the script(bad request :/). Please post comments, suggestions. I'm aware of the following problems:
> I do not check for a wall on the side of the player when walking around a wall.
> Hitting a wall from the left or going up is not 'flush', due to the way the loop and detection works. It's not apparent visually, but it creates an odd floating number with the players x/y position.

Future additions:
> Dynamic platform jumping. No more will you only be able to jump down a cliff if it's short enough! I know the formula and I plan on making it so you can jump down any cliff height!
> Diagonal wall-check. Hate the fact that walking against a cliff wall that's diagonal treats it like a square tile? No more, I plan on making it so walking against a 'diagonal' looking tile will cause you to actually walk diagonally.
Attached Files
File Type: txt walkscript_GS2.txt (2.3 KB, 681 views)

Last edited by DustyPorViva; 12-24-2007 at 05:31 AM..
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 05:03 AM.


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