Spawn actor when key is down, but destroy when up?

So i have this game where i have this jet flying up and down. I have a flame actor set to be constrained to the jet actor. What i want is that the flame disappears when the jet is going down. (Space to go up - release to fall). I can't get this easy problem answered anywhere! Any help would be appreciated.

Best Answers

  • RabidParrotRabidParrot Formally RabidParrot. Posts: 956
    edited April 2015 Accepted Answer

    @beast22ros

    If space bar is up

    Change attribute self.color.alpha to 1

    otherwise change attribute self.color.alpha to 0

  • RabidParrotRabidParrot Formally RabidParrot. Posts: 956
    Accepted Answer

    @beast22ros

    I originally read your question wrong, so I updated my first post accordingly.

Answers

Sign In or Register to comment.