-
Notifications
You must be signed in to change notification settings - Fork 0
Lua Script API: Custom Sprites Functions
Lokitot edited this page Dec 16, 2022
·
1 revision
Spawns a Lua Sprite with no animations using the tag tag, it will be using the image image.png, and will be spawned on position x, y If you want to make a Black screen with no texture, leave image field empty and use (luaSpriteMakeGraphic)[]
If another Lua Sprite that exists is already using the tag tag, it will be removed.
Spawns a Lua Sprite that supports Animations, it will be using the tag tag, be using the image image.png, the XML image.xml, and will be spawned on position x, y
If another Lua Sprite that exists is already using the tag tag, it will be removed.
Adds a Lua Sprite with the specified tag, either in front or behind the characters.
Removes a Lua Sprite with the specified tag
-
tag- The Lua Sprite's tag -
destroy- Specifies if you don't want to use the sprite anymore. Default value istrue(Set tofalseif you want to re-add it later)