Actors transforming to other Actors

samircalviniyersamircalviniyer Member Posts: 16
edited November -1 in Working with GS (Mac)
On a iPod/iPhone game is it possible when a Actor is touched to transform to another Actor?

Comments

  • WolvennaWolvenna Member Posts: 11
    make a rule that changes the image

    when actor receives event touch is pressed
    change image (to whatever other actor you wanted)

    Technically it's still the same actor, it just looks different.
    There might be a different way to do it, but that's how I would approach it.
  • samircalviniyersamircalviniyer Member Posts: 16
    I would like to know how I can change the collision shape of Actor1 when the player touches Actor1. So basically I want Actor1's collision shape to change to 'rectangle' if it was already on circle or the other way around.

    May be you can have 1 actor with the collision shape of a rectangle and another with a circle and when the player touches on of the actor's it transforms or switches into the other actor (with a different collision shape).
  • WolvennaWolvenna Member Posts: 11
    I think the only way to physically switch between actors would be to destroy and replace the rectangle one with the circle one. Probably use something like

    when actor receives event touch is pressed
    spawn actor (actor with circle collision, whatever)
    destroy this actor

    I think that might work.
Sign In or Register to comment.