A shorthand for BpxAnimatedSprite.from. The difference is, in this one the imageUrl is passed first and a new function is created out of it, so you can use it to define animated sprites without passing that URL over and over.
imageUrl
const a = $aspr("spritesheet.png");const animation1 = a(8, 8, [ [0,0], [8,0], [16,0],]);const animation2 = a(16, 8, [ [0,8], [16,8], [90,90],], { frameDuration: 3 }); Copy
const a = $aspr("spritesheet.png");const animation1 = a(8, 8, [ [0,0], [8,0], [16,0],]);const animation2 = a(16, 8, [ [0,8], [16,8], [90,90],], { frameDuration: 3 });
A shorthand for BpxAnimatedSprite.from. The difference is, in this one the
imageUrl
is passed first and a new function is created out of it, so you can use it to define animated sprites without passing that URL over and over.