How do I change the actor?

gmangogmango Member Posts: 2
edited November -1 in Working with GS (Mac)
Ok, I want to press a button in one scene, and in another scene the actor will change. How do I do that?

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Change actor? As in like completely change the actor or change the image of an actor? Changing the image of an actor should be pretty easy;

    Use a game.attribute that's an integer type. Call it whatever, we'll say its game.ActorImage

    When touch is pressed, change game.ActorImage to 1 (or 2, or 3, or whatever).

    On the actor;
    RULE: If game.ActorImage = 1
    Change image to image1.png
    If game.ActorImage = 2
    Change image to image2.png
    ETC
    ETC
  • gmangogmango Member Posts: 2
    no, i mean press a button in one scene and then in when you go back to the start screen instead of actor 1, there will be actor 2. not the image, the actual actor.
Sign In or Register to comment.