Game Maker's Garage Forum

Game Creation => Code Exchange => Topic started by: Gan on February 01, 2011, 12:36:55 PM

Title: Platformer Physics Game (SCBox2D)
Post by: Gan on February 01, 2011, 12:36:55 PM
Platformer Physics Game (http://cl.ly/2b3y3G2u320v1L3U3l3I)

Goal: Get the box into the goal.

Instructions: Open the SCBox2D Plugin. Then open the game. Use the mouse to move. Space bar jumps.
Title: Re: Platformer Physics Game (SCBox2D)
Post by: WarHampster on February 01, 2011, 01:50:17 PM
The physics seem a bit "twitchy"... like momentum only seems to kick in after you've been moving for a few seconds.
Title: Re: Platformer Physics Game (SCBox2D)
Post by: Gan on February 01, 2011, 02:16:03 PM
Yeah, blame Sc's lack of a keydown method.
Title: Re: Platformer Physics Game (SCBox2D)
Post by: WarHampster on February 01, 2011, 02:36:25 PM
I recommend using mouse control then, that's how I got around it in Hacksilver.
Title: Re: Platformer Physics Game (SCBox2D)
Post by: Gan on February 01, 2011, 03:31:02 PM
Updated with mouse movement. Smooth as silk. (Link at the top)
Title: Re: Platformer Physics Game (SCBox2D)
Post by: Connors on March 04, 2011, 10:29:44 PM
You didn't use the new key commands?
It's like this:
if rightkey = 1 then...
You DON'T need to put it in the Key Down method, I think then it would only fire when Key Down does, which isn't smooth.