Scirra / Construct-feature-requests

A place to submit feature requests and suggestions for Construct.
https://www.construct.net
9 stars 1 forks source link

Expose different tick lifecyle events in scripting api #279

Open armandoalonso opened 1 month ago

armandoalonso commented 1 month ago

Reviewed guidelines

Checked for duplicate suggestions

Summary

Discussed here: https://www.construct.net/en/forum/construct-3/scripting-51/subscribe-tick-tick2-182297#forumPost1108710

It would be great to hook into the pre/post event sheet tick as well as post tick events in the IRuntime. This would make subclassing and scripting way more useful and a work towards not needing sdk to extend construct. It also provides more control when subclassing

Possible workarounds or alternatives

Workaround now is to created an addon using sdk

Proposed solution

Expose pre/post event sheet ticks to IRuntime. Also expose post tick when all behavior ticks are ran

Why is this idea important?

It makes the engine better. Gives more flexibility to the user. And allows for more Co trol when developing a game.

Additional remarks

No response

LuanHimmlisch commented 1 month ago

@AshleyScirra any thoughts on this? Having full control of the lifecycle on the scripting interface would further unify SDKv2