How to change the direction of an actor?

helpingtogrowhelpingtogrow 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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    How are you making it fall?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    And what are you actually trying to achieve, a bouncing effect, or something else?

  • helpingtogrowhelpingtogrow Member, PRO Posts: 74

    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.

  • helpingtogrowhelpingtogrow Member, PRO Posts: 74

    I'm making it fall using the move command.
    Tx

  • MetalloMetallo Member, PRO Posts: 86

    Can you post a screenshot with the behaviours of the actor?

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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]

  • helpingtogrowhelpingtogrow Member, PRO Posts: 74

    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

Sign In or Register to comment.