This adds getSpritePatch to the BLUA HUD functions.
NOTE: The function is structured similarly to 2.2's getSprite2Patch function, and not the standard getSpritePatch function, due to the player-sprite handling: v.getSpritePatch(string/int skin, string/int sprite, [int frame, [int rotation, [angle_t rollangle]]])
getSpritePatch allows for advanced HUD capabilities by drawing object sprites on the HUD, allowing for the following features:
Draw object sprites on the screen, with support for 8 angles. Good for stuff like lua menus.
Draw rotating patches on the screen. Good for flashier HUD effects, or things like a dial speedometer.
NOTE: This is disabled if Sprite Rotation is turned off.
Should everything work fine, you should see two rotating sprites (a banana, and Tails with the default green) on the upper left corner of the screen:
This adds [``getSpritePatch``](https://wiki.srb2.org/wiki/Lua/Functions#Patch/string_drawing_functions) to the BLUA HUD functions.
NOTE: The function is structured similarly to 2.2's ``getSprite2Patch`` function, and *not* the standard ``getSpritePatch`` function, due to the player-sprite handling:
``v.getSpritePatch(string/int skin, string/int sprite, [int frame, [int rotation, [angle_t rollangle]]])``
``getSpritePatch`` allows for advanced HUD capabilities by drawing object sprites on the HUD, allowing for the following features:
* Draw object sprites on the screen, with support for 8 angles. Good for stuff like lua menus.
* Draw *rotating* patches on the screen. Good for flashier HUD effects, or things like a dial speedometer.
* NOTE: This is disabled if **Sprite Rotation** is turned off.
I've attached a test lua for this addition:
[bananatest.txt (save as a .lua file!)](https://github.com/Indev450/SRB2Kart-Saturn/files/13955127/bananatest.txt)
Should everything work fine, you should see two rotating sprites (a banana, and Tails with the default green) on the upper left corner of the screen:
* 
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This adds
getSpritePatchto the BLUA HUD functions.NOTE: The function is structured similarly to 2.2's
getSprite2Patchfunction, and not the standardgetSpritePatchfunction, due to the player-sprite handling:v.getSpritePatch(string/int skin, string/int sprite, [int frame, [int rotation, [angle_t rollangle]]])getSpritePatchallows for advanced HUD capabilities by drawing object sprites on the HUD, allowing for the following features:I've attached a test lua for this addition:
bananatest.txt (save as a .lua file!)
Should everything work fine, you should see two rotating sprites (a banana, and Tails with the default green) on the upper left corner of the screen:
Thanks for pr :)