gotoAndPlay wierdness

I think it’s a bug but lately I’ve often been wrong so bear with me
I have clip blob with a stop() on frame 1
at frame 2 an animation starts and ends some more frame later with another stop()
when I invoke gotoAndPlay(2) the clip goes to frame 2 and stops on frame 2 (!?!)

gotoplay.wick (4.9 KB)

2 Likes

I do think that this might be a glitch of some kind. But fortunately, there is a very simple way to get around it. Instead of putting your “gotoAndPlay(2)” code in the Default script of your main timeline frame, put it in the Load script instead. This seems to work. (Also, I’ll try to figure out exactly why this is, I don’t know at the moment)

ty bluecake
that was an example. will rework my code to use load

I also noted other wierdness when cloning and using gotoAndPlay()
I will try to make a .wick with that other glitches

Thanks for the report. The way scripts are processed needs an overhaul :frowning:

1 Like