This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ixe:irpl:sprites:createsprite [2025/01/11 00:03] – [CreateSprite] Argonwolf | ixe:irpl:sprites:createsprite [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Description ===== | ===== Description ===== | ||
| - | Creates a sprite with image at world position. Returns the UID for the sprite. | + | Creates a sprite with image and origin. Origin is a V2 that represents the sprite' |
| ===== Examples ===== | ===== Examples ===== | ||
| - | < | + | < |
| + | #Spawning a default enemy sprite and moving it to 100,100 | ||
| + | CreateSprite(" | ||
| + | SetSpritePosition(< | ||
| + | |||
| + | #spawning a custom sprite from the map's editor directory | ||
| + | CreateSprite("/ | ||
| </ | </ | ||