How to change the direction of an actor?
helpingtogrow
Member, PRO Posts: 74
I have an actor falling down the screen. How do I make it go back up on some condition?
Thanks
Comments
How are you making it fall?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
And what are you actually trying to achieve, a bouncing effect, or something else?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
It is falling and will ultimately destroy itself when it hits the bottom of the screen.
I want it to go up when it hits another actor. Yes it could bounce up.
I'm making it fall using the move command.
Tx
Can you post a screenshot with the behaviours of the actor?
When actor collides with [other actor]
Change attribute self.direction to 1
When attribute self.direction=0
Move [down]
When attribute self.direction=1
Move [up]
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Hi,
I have a PNG image with a transparent background but when I get it to move across the
screen, it displays a white background. How do I stop this?
Thanks