Tick after events, before draw

0 favourites
  • 5 posts
From the Asset Store
14 amazing sound files of game events like Level Ups, Level Completes, object spawn, object taking etc.
  • If I recall correctly, Construct Classic allowed plugins to have two tick methods - one called before processing events, and another called after processing events but before drawing - which allowed plugins to account for changes to objects arising from events processed before the frame was rendered. Is there anything similar in Construct 2?

    I feel I should mention that my plugin - MagiCam, specifically - is not drawn, so running my tick logic in the draw method is out of the question.

  • Look in the pin behavior. At least I think that's the behavior that does it, there are others. The function was called tick2() but now it's called posttick or something like that. The function is usually right after the tick function.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, I just found that, but it appears to work differently for plugins and behaviors. Plugins call it tick2 and you need to call runtime.tick2Me(), whereas behaviors call it posttick and it gets called automatically.


  • Hey, Is this still the case? I was looking in the "scroll to" behavior and found found that it uses tick2 and not posttick? Am I missing something?

  • Check preview.js to see the exact difference.

    Search for tick2() posttick() etc and youll find where/when theyre called

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