Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Help to create a "spring stilt" for my game

Author
Message
Almus
12
Years of Service
User Offline
Joined: 27th Aug 2011
Location: Brasil
Posted: 19th Dec 2011 19:48
Someone can help me with a spring joint, i am making a game in tier 1 using box2d physics, but i am do not quite understand how to reproduce this jumping stilt in my game.
My idea is, when i press a button it adds more pressure in the spring causing him to jump higher, i dont want to apply impulse and force, i want to make it more real, leaving the spring doing the dirty work. Sorry for my bad english.

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 19th Dec 2011 20:55
I have a similar thing to add in my own game but mine will not work the same way. If I were you I would look at editing the "restitution" of the dynamic sprite.

By making this more than 1.0 you will jump higher each time, less than 1.0 you will loose "bounce" each time.

I hope that helps!

Login to post a reply

Server time is: 2024-03-29 11:05:18
Your offset time is: 2024-03-29 11:05:18