Hey Gan, GM had a command called
spritePath which moved a sprite from it's current location to a specified location, drawing the sprite
x amount of times along the way. For example:
sprite spriteIndex 0 0 "Elf.gif"
spritePath spriteIndex 100 100 4
That would draw a sprite at 0px, then draw it at 25px, 50px, 75px, and finally 100px. But here's the important bit: any code that comes
after the
spritePath command is only executed after the animation sequence. I can't figure out how to make an equivalent method in in JavaScript. Any ideas?