Skip to content
Snippets Groups Projects

Get rotated sprites with v.getSprite(2)Patch

Merged colette requested to merge fickleheart/SRB2:lua-hud-get-rotsprites into next

NOTE: since rotated sprites are offset upward by 4px from non-rotated sprites, these functions will now return a third boolean (true) if a rotated sprite was returned, so that scripters can offset accordingly.

hi lmao here's some more garbage

srb20233
(it's in the upper-left corner - yes I know it's not a real good visible example)

bonus hack: use this in your lua mod to pre-cache sprites you know will get rotated in a level by adding a titlecard HUD hook :wave:

Edited by colette

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
Please register or sign in to reply
Loading