Do After Block Use Question

Mineat

  • Posts: 379
Can I put a "do after x seconds" block in an update event? If so, how does that work in the update event?

corbanwolf

  • Posts: 223
You shouldn't as you know UPDATE EVENT is being executed 100 times per second, so is the delayed event which will cause unpredictable errors. And maybe even a black hole will be created that will swallow the earth
♪♪♪♪♪♪

Luyren

  • *
  • Posts: 2732
Can I put a "do after x seconds" block in an update event? If so, how does that work in the update event?
Code: [Select]
If not boolean
-set boolean to true
--do after N
---do your stuff here
---set boolean to false
This is one example.  If you don't do something like that, you will only have hundreds of do after events queued one after the other.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Mineat

  • Posts: 379
Thanks, everyone.