Spawning only works when broken?

  • The event objects were out of order, but the spawning worked up until the third object (Sprite9). Then when I fixed the events, whenever I click on the first object (Sprite28), I get sent back to Title instead of the second object (Sprite8) spawning.

  • Try adding an Else condition first, in events 3, 5, 7

  • If the else solution fails, you could just reverse the order of events 1, 3, 5, and 7. As it is now, you start a cascade effect when you set manual to 1.

  • And personally I always like the trigger condition first.. and to reorder the logic accordingly.

    edit: and in giving the advice about Else, I was wary that you might be intending some kind of sequential ordering thing.. which it would probably defeat.

  • codah: what should I add to Else? I left them blank and the problem persisted.

    @link: this worked!

    thanks everyone

  • codah: what should I add to Else? I left them blank and the problem persisted.

    Link: this worked!

    thanks everyone

    I guess it doesn't matter any more I personally don't like relying on ordering of events so much as I think it can make brittle code, but whatever works for you!

  • Glad to hear it worked.

    I personally don't like relying on ordering of events so much as I think it can make brittle code, but whatever works for you!

    I absolutely agree, it's really not good practice if it can be avoided. Unfortunately, the triggers in subevents prevent else from working in this case.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The reason you are experiencing this problem is because the moment you click the left button its going through all the instances of manual before you get to release the left button. So its setting manual to 1 then 2 than 3 really fast. That's why you end up at the title screen. This is also why linkman2004's solution works. Because it gives you enough time for the left button trigger to become false before the code comes back around to check the condition for manual again.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)