GameSalad
Education
Developers
Games
Arcade
Featured Games
Help
Tutorials
Cookbook
FAQ
Support
Community
Forums
Blog
Bug Tracker
Buy Now
Download
Sign Up
Login
Forum
Best Of...
Forums
›
GameSalad 101
›
Working with GS (Mac)
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In with GS Helpdesk
Register
Sign In with GS Helpdesk
Sign In with GameSalad
Sign In
Register
Quick Links
Categories
Recent Discussions
Best Of...
Unanswered
Categories
3.9K
All Categories
662
From the GS Team
10
Meetups
58.8K
GameSalad 101
10.5K
The Games Biz
5.8K
Off-Topic
2.9K
Commercial / "Help Wanted"
3.8K
Feedback
3.8K
Tech Support
Learn about GameSalad
Shop for Game assets
how to actor destroy other actor when touches.
Reigiv4s
Posts:
27
Member
April 2012
edited April 2012
in
Working with GS (Mac)
X=player B=Button D=Door
i need : When X Touches B Then D Can Either be Destroyed or change its image..this way X can pass through when image change.
0
Best Answer
JohnPapiomitis
Posts:
6,256
Member
April 2012
Accepted Answer
Yeah you have to set that up. So i assume you have a collide behavior for x to collide with the door. Then put the collide behavior in a rule when the boolean attribute you made is false.
1
Answers
JohnPapiomitis
Posts:
6,256
Member
April 2012
make a boolean attribute
In actor x have a rule when it collides with b
-change attribute to true
In actor D have a rule when attribute is true
-destroy or do whatever
1
Reigiv4s
Posts:
27
Member
April 2012
ok this work when use Destroy.. but when i use change image like o Door open, X cant trough.still collide with D actor.
1
Reigiv4s
Posts:
27
Member
April 2012
n1.. its work
0
This discussion has been closed.
Answers
In actor x have a rule when it collides with b
-change attribute to true
In actor D have a rule when attribute is true
-destroy or do whatever