camera switching

l.daruml.darum Member Posts: 4
edited August 2012 in Working with GS (Mac)
how can I switch camera control between two actors or more? Please help a newbie! thanks.

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    edited August 2012
    put the controlCamera behavior in a rule

    Examples:
    Rule: when
    Event: touch is pressed
    -controlCamera

    or:
    add a gameAttribute: index type … cameraActive
    Rule: when
    Attribute: scene.cameraOrigin.Y ≥ 320 (or any condition you want for changeValue)
    -changeAttribute: game.cameraActive To: 1

    on actors:
    Rule: when
    Attribute: game.cameraActive = myCam#
    (need an actor attribute to myCam# to uniquely number for correct control)
    -controlCamera

    image MH
  • l.daruml.darum Member Posts: 4
    Thanks MotherHoose for the answer...I will work on that now!
Sign In or Register to comment.