-
Notifications
You must be signed in to change notification settings - Fork 0
Sprite API
Xeltica edited this page Jun 21, 2018
·
7 revisions
You can specify <sprite_tag> as a first parameter in all Sprite API.
You can control the player entity if you specify player as a parameter of sprite_tag.
e.g.
+spset boy, "entity.npc.boy.stay", 0, 0
// These are same each other.
boy+spofs 40, 0
+spofs boy, 40, 0
Create a sprite with sprite_tag. You specify a sprite animation which is registered to the manager.
You can also specify x and y to set a default position.
Create a sprite without the gravity.
Change a position of the sprite.
Change a character of the sprite.
Set a label of the event to execute for the sprite.
Let the sprite walk. Unit of the time parameter is second. If the sprite supports walking motion, it will navigate to the walking animation.
Delete the sprite.