
12-24-2007, 04:17 AM
|
|
Will work for food. Maybe
|
 |
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
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. |
Last edited by DustyPorViva; 12-24-2007 at 05:31 AM..
|
|
|