toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
How to change the direction of an actor when it collides with another actor.
thomasrichardgames
Member
Posts:
263
July 2012
edited July 2012
in
Working with GS (Mac)
i would like to know how to change the direction of an actor when it collides with another actor. Thanks.
Comments
adlaim
Member
Posts:
68
July 2012
Make a boolean attribute called ((ChangeDirection))- or Some thing -((False)).
1-Whin : ChangeDirection is false
Rule:
Move ==> direction= 0
------------------------
2-When : overalips or collide .... & ChangeDirection is False
Rule:
ChangeDirection TO true
-------------------------
3- When : ChangeDirection is true
Rule: move <== Direction = 180
......
thomasrichardgames
Member
Posts:
263
July 2012
this looks extremely confusing. Thanks though.
Sign In
or
Register
to comment.
Comments
1-Whin : ChangeDirection is false
Rule:
Move ==> direction= 0
------------------------
2-When : overalips or collide .... & ChangeDirection is False
Rule:
ChangeDirection TO true
-------------------------
3- When : ChangeDirection is true
Rule: move <== Direction = 180
......