Author Topic: A custom Animation's specific frame needs to trigger another object to appear  (Read 137 times)

I'm not sure the subject description is understandable enough.
Let's say i have a custom animation with 70 frames, and at frame 60 it needs to trigger another object or animation of another character/object (i'm not sure yet, depends how much effort i wanna put into this).

How would i do that in script?


Something like this:

Code: Adventure Game Studio
  1. function repeatedly_execute()
  2. {
  3.     if (oObject1.Animating && oObject1.View == MY_VIEW && oObject1.Loop == MY_LOOP && oObject1.Frame == 60) {
  4.          // Trigger action
  5.     }
  6. }

In room script you would replace "repeatedly_execute" with corresponding room's event handler.
« Last Edit: 27 Jan 2020, 01:00 by Crimson Wizard »

Ahh! Yes ofc! I remember now, that .animating syntax, i forgot that, thank god for the beginner technical questions! (laugh) 
Thanks Crimson!