i spent a lot of time trying to figure out how the engine works and i figured it out and made this hhhhh (lightdude is the first boss in my original game (play the demo here, you can fight him https://scratch.mit.edu/projects/550650288/ ))
@BobyEpicGamer and @BroBro2607 for the original thing