Make object hover after throw

0 favourites
  • 4 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • dl.dropbox.com/u/23570533/throw2.capx

    Hi Guys,

    I was wondering if it is possible to make the following feature: after having thrown an object, make it hover in the air for a second or four before falling to the ground. A right mouse click should then make it fall instantly

    I tried working with gravity but it doesn�t seem to really do the trick.

    The idea would be to build a small platform game, where the player has to set his own stepping blocks by throwing them to get to a destination.

    Any tips ?

    Grtz,

    J.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'll try to teach you the easiest way.

    Make an invisible sprite, bigger than your object, call it as "detector". Use platform, bullet or 8 ways behaviors here. Setup the gravity for 0 if using platform, so, it will hover and not fall.

    Pin your object to your detector.

    When the detector is overlapping the Ground Families (I strong recommend you use Families with all your ground and wall objects inside), maintain his direction in line, like you want (8ways behavior is the best for it, but bullet can work like a charm too).

    The bigger your detector, high and far from walls your object will be.

  • Something like this?

    throw2_edited.capx

  • Nimtrix, thanks a lot <img src="smileys/smiley20.gif" border="0" align="middle" /> !! I was struggeling with it for a couple of days and didn't want to bother the locals too much, I came close but your solution is a lot easier and cleaner. It was just what I was looking for.

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