Trigger an actor issue
kajuto
Member Posts: 314
How when the hero actor collide with an object then the third actor move to y axis value? I just want to know when 1 actor collide with the 2nd one then the third actor start to move thank advance
Best Answer
-
Clouds Posts: 1,599
John, i tried that, but i don't know why it won't move the Third jaja
You need to explain clearly and in detail exactly what you did (screen shots of your code would really help) . . . simply saying "tried that, didn't work" is not much help when trying to diagnose a problem.
Answers
In actor 1 have a rule when it collides with actor 2
-change attribute moveThird to true
Then in the third actor have a rule when attribute moveThird=true
-then put your move behaviors in there.
Also i recommend you check out all the tutorials on the gamesalad cookbook youtube chanel, gshelper.com and at the cookbook link at the top of this page. Youll have a much better understanding of gamesalad after you do.
Cheers
What i told you will work, so you must have done somethign wrong. Cant really tell you anything other then that without seeing what you did.
what i put to the Third actor is :
Att. game.Roof.move is true
move to behavior
-position x=278.3828 , y= 0 relative to scene and speed 75
First actor is:
Att overlap or collides with trigger (switch)= Second actor
Change Att
- game.roof.move object to true
Second actor= Trigger switch
- i didn't use code for this actor
I don't see any problem with your code,but game.roof.move object to true(what is the object doing there?)