How to unlock actor?

InceptionDeveloperInceptionDeveloper Member Posts: 50
edited August 2016 in Working with GS (PC)

how can i unlock an actor?? and then how can i set camera to only left side for my actor movemnent....

Comments

  • IceboxIcebox Member Posts: 1,485

    @InceptionDeveloper said:
    how can i unlock an actor??

    Create a game boolean , call it unlockactor for example

    put a rule in your actor that you want unlocked that says

    Rule
    if game.unlockactor is true and touch is pressed choose this actor otherwise nothing

    put the condition you want the game.unlockactor to trigger , maybe you want it to unlock when the score is greater than 100 for example
    so
    for example if game.score is > 100
    change attribute game.unlockactor to true

    then how can i set camera to only left side for my actor movemnent....

    Create a real game attribute call it ActorX

    in your actor
    constrain attribute game.ActorX to self.positionx

    create a camera actor then put this behavior
    constrain attribute self.positionx to game.ActorX - 50 ( or whatever value) so it will always be on the left side of your main actor

    give it a control camera behavior.

    hope this made sense.

  • InceptionDeveloperInceptionDeveloper Member Posts: 50

    how to make a 'camera actor'?

  • IceboxIcebox Member Posts: 1,485

    @InceptionDeveloper said:
    how to make a 'camera actor'?

    Like this

Sign In or Register to comment.