Help with actor collision?
turkeyman
Member Posts: 3
Hi, guys.
I'm making my first game on GameSalad, and I want to change the attribute of actor A after it collides with actor B. I want to make it so that actor A can touch actor B for as long as it wants, and the attribute doesn't change until they stop touching. How do I do this?
Comments
You can create a game integer attribute. Call it "CollisionTrue" or something like that. Keep its initial value at 0.
The Game.CollisionTrue attribute will be set to 1 when the collision is true. You can then use that condition to fire off whatever you need to happen in your game.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
This is also my first question. I hope I posted it in the right place...
Thanks! It worked!
Great! Glad it's working!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx