toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
STOP
Jamwithno
Member
Posts:
312
April 2011
edited November -1
in
Working with GS (Mac)
I know that there is a way to but how do you have an actor stop when it has hit a wall
Comments
DreamLab
Member
Posts:
2,127
April 2011
make a rule (a boolean) called touchwall or something
when actor touches wall
change touch.wall to true
when touch.wall= true, change self.motionlinearvelocity x and y to 0
when touch.wall=false
continue to move or whatever you want it to do.
thats just my go at it.
Jamwithno
Member
Posts:
312
April 2011
thanks so much i am good at gamesalad but the not the best
Sign In
or
Register
to comment.
Comments
when actor touches wall
change touch.wall to true
when touch.wall= true, change self.motionlinearvelocity x and y to 0
when touch.wall=false
continue to move or whatever you want it to do.
thats just my go at it.