toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
---> Hide and Show actor HELP
ChipmunkGames
Member
Posts:
106
August 2010
edited November -1
in
Working with GS (Mac)
Hey guys, can you hide an actor and then make it re appear somewhere else? I know the 'destroy' behavior hides it, but then how can i make it move somewhere else and the re appear?
Comments
firemaplegames
Member
Posts:
3,211
August 2010
Turn the actor's alpha to 0 to hide it, then back to 1 to have it reappear.
ChipmunkGames
Member
Posts:
106
August 2010
thanks! That helps so much!
ChipmunkGames
Member
Posts:
106
August 2010
wait NOOOOOOOO how do i change the actors alpha!? I AM SO STUPID!
scitunes
Member, Sous Chef
Posts:
4,047
August 2010
rule
when touch is pressed
-change attribute self.color alpha to 0
-move to whateverX , whateverY
Rule when self.positionX = whateverX
AND self.positionY = whateverY
change attribute self.color alpha to 1
firemaplegames
Member
Posts:
3,211
August 2010
Use the Change Attribute behavior.
Change Attribute: self.Color.Alpha To: 0
ChipmunkGames
Member
Posts:
106
August 2010
thanks!
Sign In
or
Register
to comment.
Comments
when touch is pressed
-change attribute self.color alpha to 0
-move to whateverX , whateverY
Rule when self.positionX = whateverX
AND self.positionY = whateverY
change attribute self.color alpha to 1
Change Attribute: self.Color.Alpha To: 0