Skip to content
Snippets Groups Projects

Lua: Allow access to skin.sprites[]

Merged SteelT requested to merge lua-skinsprites into next

This exposes skin.sprites[] for usage in scripts, for accessing a skins sprite set, only numframes is exposed so far though, as it's to my understanding there's already a function for what spriteframes deals with.

You can get the number of frames a sprite has by doing something like this for example, skins["sonic"].sprites[spr2].numframes, if numframes returns 0 that means spr2 does not exist in the sprite set for the specified skin. You can also get a super version by doing FF_SP2SUPER|spr2.

#skins["sonic"].sprites to get the number of player sprites.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading