Switching Help

MOVProductionsMOVProductions Member Posts: 53
edited November -1 in Working with GS (Mac)
I want to make something that when a button is pressed the object switches and the other one is then being controlled

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Make a game attribute, integer type, call it game.switch (or whatever you want to call it)

    Rule on object 1, when game.switch is 0; control camera
    Rule on object 2, when game.switch is 1; control camera

    Rule on button;
    when touch is released change attribute; game.switch to (game.switch+1)%2
  • DrGlickertDrGlickert Member Posts: 1,135
    http://www.youtube.com/user/GameSaladCookbook#p/u/7/tJ6ZYERfatY

    Also, watch this video. It explains it in more detail.

    Also, watch all the videos.

    Then, watch them all again. (I've seen some like 10 times). They're very helpful!

    Good luck!
  • MOVProductionsMOVProductions Member Posts: 53
    thanks
Sign In or Register to comment.