Bare jumping

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Matokage
Slime Knight
Posts: 275
Joined: Sat May 26, 2012 11:48 pm
Contact:

Bare jumping

Post by Matokage »

I'm getting problems on scripting a side scrolling game, i want the character to jump, but don't move forward or backwards, just straight up, the objective is to avoid boxes on a factory track.
"I can't buy food with glory"
User avatar
Gizmog
Metal King Slime
Posts: 2615
Joined: Tue Feb 19, 2008 5:41 am

Post by Gizmog »

What're you trying now, and what is it doing that's inadequate?
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Here is the same example script I gave Misac in IRC. I haven't tested it in a game, and it may need a little adjusting, but it should be a good starting place for the type of conveyor-belt based jumping-only sidescroller that Misac was telling me about.

http://pastebin.com/6qd36enn

EDIT: gosh, posting scripts in code blocks here is kinda hopeless. Anytime there is a less than or greater than, it mangles the posted script. Put on pastebin instead
Last edited by Bob the Hamster on Mon Jan 07, 2013 7:00 pm, edited 1 time in total.
Post Reply