Announcement

Collapse
No announcement yet.

Flow Control Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Flow Control Question

    I am working on a 2d side scroller. I am trying to make a bridge appear piece by peice while you hold down a key. I can't seem to get it to stop when the key is released. It just keeps going. On the other side of the coin I can get it to stop but I can't get it to continue when you hold down the key again.

    My question is how do I get it to stop if the key is released and then continue from where it left off when you press the key again?


    #2
    It's hard to help if you have something already done and you just describe the problem. There can a lot of ways how to approach this but my guess would be on some forgotten gate opening or unpausing/creating timer.

    But if you want to start from scratch, simply 1. link input event to gate's open (add sequence before that so you can open the gate first then call gate's enter pin) and close, 2. from exit add sequence from 0 should be your bridge placing logic and in 1 link with retriggerable delay and link with gate enter.

    Like so
     
    Spoiler


    I hope this helps.

    Comment

    Working...
    X