PDA

View Full Version : Jumping with Collision Detection LuaPlayer Snippet



yaustar
August 12th, 2006, 05:51
Note to news posters
I do not permit this Lua code snippet to be placed on ANY news page unless it is posted with the following quote:

This is just a small code snippet for Lua beginners/developers. This is not a release, game or application. Do not treat it as such.

2006-08-12
Got bored. Here is a snippet for jumping onto platforms. Press up to jump, circle to switch control of the box.

Warning: Hacky code

Todo
- Need to add 'jump' states
- Animation?
- Moving platforms?
- Fix 'double jump' bug
- Fix 'moving both at the same time' bug
- Fix box collision [Fixed 2006-08-12]

http://i8.tinypic.com/24ec4qr.png

MasterChafed
August 12th, 2006, 11:06
thx yaustar.

bronxbomber92
August 12th, 2006, 19:16
Sweet, this will be handy :)

ninja9393
August 12th, 2006, 23:13
thanks yaustar