rotate platforms on game salad?like in "feed me oil"

arkonllfarkonllf Member Posts: 118
edited November -1 in Working with GS (Mac)
is it possible to rotate platform on gamesalad?
i know how to make platform movable but i dont know how to rotate them like the platforms in feed me oil. could any one tell me please how to make this?

Comments

  • gsfanaticgsfanatic Member Posts: 9
    try this: in the actor make a rule that says when touch is pressed constrain self rotation to mouse position y. it is not perfect but it works
  • arkonllfarkonllf Member Posts: 118
    it works but i can only make half a turn.
    any other ways?
  • ultimaultima Member, PRO Posts: 1,207
    haven't played the game but wouldn't rotate clockwise or counter clockwise while press work?
  • hotMagichotMagic Member, PRO Posts: 266
    I would try something of this type. When you touch on it, then constrain its rotation to the VectorToAngle of the object's center vs the touch position. This way, you'll not only get the nice rotation, but youll be able to drag outside of the object and see it better as it turns, if you want.

    If the object should rotate around the center, keep in mind that you'll need to do an offset because they rotate around a corner.

    I have a similar thing in my latest game and it works fine. I'd send you the code but I'm at work. Try that concept and lemme know if it helps.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    http://gamesalad.com/game/2540

    here ya go. Search the title in the new section of the creator to open the project
Sign In or Register to comment.