Why does...

0 favourites
  • 4 posts
  • If you do you following:

    If ObjectX is overlapping ObjectY --> Spawn ObjectZ

                                                        --> Set InstanceVariableZ to 2

    *Where InstanceVariableZ acts on ObjectZ

    Then farther down the event sheet, you have:

    When InstanceVariableZ = 2   --> Set ObjectZ animation frame to 2

    The above works as expected. ObjectZ spawns in frame 2 of its animation.

    However, if you switch the two on your event sheet, even if nothing else is inbetween, it doesn't work properly.

    For me, this causes the "initial frame" to appear sporadically.

    I didn't put this into bugs, because thus far I have simply not been knowledgeable enough to understand the issues I've faced.

    I'm using updated Chrome, updated video drivers, r102

    Thank you!

    Edit:

    I understand that the engine must run through the entire event sheet again prior to returning to that particular event, it just seems like a bit of an extreme response, considering I would think that even when they are switched, it should only take a single "tick" to correct the flaw. I don't know..

  • My first thought was 'picking', but I tried the scenario above and it worked. Always best to include a CAPX for the specifics.

  • Can you share a .capx?

    When the event sheet is empty it shows the tip: "Events are run from top to bottom". After the bottom of the event sheet the screen is drawn. So if you have them one way round, the object is created, the animation frame is set, then the screen is drawn. The other way round, the object is created, the screen is drawn (before the animation frame is set), then the next tick the animation frame is set. This results in a quick flash of the wrong animation frame for one tick. This is why the order of your events is important.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for your responses, Blackhornet and Ashley!

    I would like to have a few minutes to investigate this situation a bit further myself prior to posting the capx, and unfortunately I am engaged by another task that I must complete prior to that. I will return to this post a little later; I just wanted to thank both of you and let you know I am still interested in this.

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