I'm not sure about the speed thing but the pumping's simple
say you want them to jump when they press the space bar? This's how you'd do it:
- you've got your idle/running object
- make another object with a jumping sprite
- give the new object a gravity (presuming you're familiar with that)
- put a trigger on the new object so when it's "created" it moves upward (remember to leave it relative- i think -so it still moves forward at the running speed before the jump). That and the gravity should make a fairly decent arc movement.
- put a trigger on the original object so when you press the space bar it changes the instance not the sprite and set it to change into your new object.
- then layer invisible objects over all the grounds you can walk on.
- put a trigger so that when the jump object collides with the invisible triggers the instance changes back into the original object.
- WOLAH (that's spelt wrong..) YOUR OBJECT JUMPS!
This way you could make obstacles that you can't get pass without jumping and you might make a way to upgrade how far/high and elum can jump
to change how high make the movement upward faster
to change how far make the gravity less
I do hope it made sense... and if you're unsure about gravity just ask
