How to unlock actor?
InceptionDeveloper
Member Posts: 50
how can i unlock an actor?? and then how can i set camera to only left side for my actor movemnent....
Comments
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
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.
how to make a 'camera actor'?
my games >> https://play.google.com/store/apps/developer?id=TheAnonyDeveloper
Like this