rotating the game world

SteamworksSteamworks Member Posts: 61
edited November -1 in Working with GS (Mac)
so i was thinking about creating a game where if you touched the screen (or a button) everything in the world except your player would rotate 90 degrees. how would i do this? would i link everything but my actor to a game attribute where if turned to 1, 2, 3, or 4 they would all rotate a certain way?

Comments

  • dmilinovichiiidmilinovichiii Member Posts: 620
    No. In the scene attributes I think you can rotate the camera.
  • SteamworksSteamworks Member Posts: 61
    i dont need to rotate the camera, i want to rotate everything but my character. i looked it up online and i just found a game called "and yet it moves" and they have exactly what i was thinking. i think i figured it out except i cant get things to snap rotate. i want it so if you touch the button it rotates 90 degrees. when i touch the button you have to hold it down to rotate.
  • zombieaddictzombieaddict Member Posts: 213
    instead of telling the actor to rotate on touch. have a "spin" integer attribute set to 0 that turns to 1 when you touch the actor. then have a seperate rule that states when game.spin = 1, and then your rotational rules. that way the game will have no choice but to carry out the full rotation because the attribute will stay at 1.
  • BSideGamesBSideGames Member Posts: 392
    Go take a look at the DBA template... cheap all summer

    http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GSTemplateFFU.html
  • SteamworksSteamworks Member Posts: 61
    zombieaddict said:
    instead of telling the actor to rotate on touch. have a "spin" integer attribute set to 0 that turns to 1 when you touch the actor. then have a seperate rule that states when game.spin = 1, and then your rotational rules. that way the game will have no choice but to carry out the full rotation because the attribute will stay at 1.

    thx i fallowed what you said and it worked great... except after i hit it once then if i hit the button again it wont rotate again. the attribute stays at 1 and wont go back to 0. is their a way to change it back to 0 without having a timer. maybe a way to change the attribute to 0 once the rotation is completed?
  • hman360hman360 Member Posts: 590
    Make another rule.

    When att_ = 1
    And touch is pressed or whatever

    Change attribute _ back to 0 (or change whatever attributes or rules)

    So have one for 0 and one for 1 to change it back.

    Hope that helps :)
  • SteamworksSteamworks Member Posts: 61
    hman360 said:
    Make another rule.

    When att_ = 1
    And touch is pressed or whatever

    Change attribute _ back to 0 (or change whatever attributes or rules)

    So have one for 0 and one for 1 to change it back.

    Hope that helps :)

    thank you! i was thinking about that but couldn't get it to work
  • hman360hman360 Member Posts: 590
    Did it work?
  • SteamworksSteamworks Member Posts: 61
    yah it worked but now i have another problem -.- i want it so every time i hit the button it rotates again. so if i have a button set for 90 degrees (going to the right) then every time i hit the button my object will rotate 90 degrees (to the right). that doesn't happen though.
  • SteamworksSteamworks Member Posts: 61
    nvm i got it to work lol
Sign In or Register to comment.