Gravity, anyone?

This forum is currently in read-only mode.
From the Asset Store
Gravity Square is a game where I aim to reach the square at the polka dot door :)
  • hi, how can I add gravity to my game without adding the platform behaviour. Or at least having platform behaviour but disabling all its functions except gravity.

  • to not use a platform behavior: add a variable to the object called "drop"(or whatever) , and an always condition adding 0.09(or whatever you want the force of gravity to be) to "drop" than set y. position of the object to current y. + "drop"

    if you don't mind having the platform object, and want its collision detection just set its max speed and everything else to 0, besides the falling.

    --------------------------------------------------------------------------

    fun with falling: if you make the falling your own event, you can have the object bounce by setting its "drop" to the current ("drop"/2)*-1 when it overlaps a solid object.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • whoa that helped, thanks Bartosh

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)