How to make actors react when 1 particular button is pressed?
adw2008
Member Posts: 10
Hi Everyone,
I am developing an intro to my first game and have hit a snag, its basically complete BUT when i hit the play button, i want the other actors to react (ie fly off the screen) how do i get them to react when the button is pressed? I am assuming its a rule but other than that im at a blank.
any help would be much appreciated
cheers
I am developing an intro to my first game and have hit a snag, its basically complete BUT when i hit the play button, i want the other actors to react (ie fly off the screen) how do i get them to react when the button is pressed? I am assuming its a rule but other than that im at a blank.
any help would be much appreciated
cheers
Comments
Hi @adw2008 One way is as follows: make a boolean attribute, let's call it React.
In each of the actors rules that you want to fly off the screen:
Rule: When React is true
Interpolate self.Position.X to ??
Interpolate self.Position.Y to ??
Time over .5 seconds ----for example
Now in the Rules section of your Play Button:
Rule: When touch is pressed
change Attribute scene.React to true
timer: After 0.5 seconds
Change Scene
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps