~~NOTOC~~ ====== CreateSprite ====== CreateSprite(<-image <-origin) ===== Description ===== Creates a sprite with image and origin. Origin is a V2 that represents the sprite's pivot point as a fraction of its size. For instance, an origin of (0,0) causes the sprite to pivot around its bottom-left corner, while an origin of (0.5,0.5) causes it to pivot around its center. Returns the UID for the sprite. ===== Examples ===== #Spawning a default enemy sprite and moving it to 100,100 CreateSprite("$/beast/beast.png" v2(0.5 0.5)) ->sprite SetSpritePosition(<-sprite v2(100 100) 0) #spawning a custom sprite from the map's editor directory CreateSprite("/custom4.png" v2(0.5 0.5))