Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 12-24-2007, 04:20 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Short script
Complex
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #3  
Old 12-24-2007, 11:38 PM
gemini2 gemini2 is offline
Fincayran Loser
gemini2's Avatar
Join Date: Jun 2007
Location: Georgia
Posts: 174
gemini2 is on a distinguished road
Send a message via AIM to gemini2 Send a message via MSN to gemini2
Very nice script, and I can't wait for those future additions
__________________
Quote:
Originally Posted by Crystia RC
*Angelu: i said the tuba isnt fitting
Oinkness: well use some lube
Quote:
Originally Posted by Angelu View Post
for me the hole is to big and its a way to thin :O
Reply With Quote
  #4  
Old 02-09-2008, 06:39 AM
pokeSMOT pokeSMOT is offline
Registered User
Join Date: Jun 2006
Posts: 35
pokeSMOT is on a distinguished road
OMG! This movement system is awesome. I hope you don't mind that I'm using it <3
Reply With Quote
  #5  
Old 02-09-2008, 07:09 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
That huge block of math at the bottom collapsed my brain.
__________________
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 11:17 PM.


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