How to make an actor which can fly?

gawakamygawakamy Member Posts: 109
edited May 2012 in Working with GS (Mac)
Hi, GS dudes.
I have making a game, and the scene has gravity. The other objects are alright, but I need to make some objects which can fly. How to make the flying object?

Best Answer

  • iTopGamesiTopGames Posts: 71
    Accepted Answer
    You can use the accelerate behavior in the actor you want to fly, set it to the gravity's opposite direction, if your gravity is set in 270º use the accelerate in 90º and with a force equal or more than the gravity, you can trigger it when touch a button or tap the actor or press a key of keyboard, it all ups to your imagination in GameSalad.

    Have a nice day.

Answers

  • jckmcgrawjckmcgraw Member Posts: 647
    @gawakamy

    What do you mean by fly? Do you want them to be launched upwards? Or be a steadily moving platform?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Use accelerate down as your gravity, have a boolean attribute and have the accelerate down behavior in a rule when attribute is false. Then when you want to fly just change the attribute to true and itll turn the gravity off
  • gawakamygawakamy Member Posts: 109
    @jckmcgraw It means floating. :)

    @iTopGames Yes, it works. Thanks :)

    @JohnPapiomitis Thanks, John too :)
Sign In or Register to comment.