How to slide on screen?

I have a planet on my scene.

I want the planet turn counter-clockwise rotation when I slide to left on the screen, and turn clockwise rotation when I slide to right.

But when I create a new rule, it seems no conditions can describe this.

How to implement it?

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited September 2013
    I made a quick file for you.

    The blue actor at the bottom follows the mouse X position and tracks its own motion linear X then changes the game booleans rotate clock and anti clock.

    I also added some drag to the rotating actor.

    See if it helps.

    Darren.
  • CroissantCroissant Member Posts: 21
    Thank you very much for helping me˜
  • CroissantCroissant Member Posts: 21
    Hi, Deepblue˜

    I don't know why but what I set didn't work, which everything just like the template you gave me.

    So I directly copied and pasted all from your template to my project file, then it worked!

    I just don't know why? Why?
Sign In or Register to comment.