Can I have both gravity and negative gravity?

I've mentioned in my other posts that my son and I are doing a simple "pop the balloons before they get to the top of the screen" game. I achieved this affect by setting negative gravity so they float toward the top. This works great. We were thinking about adding some "bonus" items that you could tap, like somebody in a parachute. The only problem, of course, is that we'd want the parachute guy to float down the screen, not up.

Is there a good trick for having some actors affected by gravity while others fight it in the opposite direction? I'm going to experiment with accelerating him down but thought I'd ask in case there's a standard trick for something like this.

(We considered just having the bonus items float up as well, like a kite or something, but they are too easily confused with the regular balloons. Something coming down the screen stands right out.)

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    @dmorin@gmail.com said:

    Switch scene gravity off.

    On the balloons you want to float up use an Accelerate or Move behaviour set to to 90° and relative to scene.

    On the balloons you want to float down use an Accelerate or Move behaviour set to to 270° and relative to scene.

Sign In or Register to comment.