Does anyone know how to draw a sprite like an indicator to the screen?
I have a "Health Regeneration" toggle and an "Auto Item Pickup" toggle. I'm trying to figure out how to draw an indication sprite to the screen, say either at the lower left or right, that stays there if that feature is turned on. Another question is does that stuff automatically move when you "+" or "-" the screen?
Page 1 of 1
Displaying an Indicator Sprite for Something Being Toggled.
#1 Posted 05 September 2020 - 04:13 PM
#2 Posted 05 September 2020 - 05:08 PM
You are making too many threads. I'll answer this one, but you can put all your queries into one thread, there are already some existing ones for this purpose.
Use rotatesprite or some variant of it in a display event to draw things on the hud. Set the RS_NOCLIP bit on the orientation paremeter if you DON'T want it affected by screen_size (the + and - sizing). EDIT: when you study the rotatesprite wiki entry and experiment with it, note that the last 4 parameters have to do with screen boundaries.
Presumably you have declared your own gamevars and set them appropriately depending on whether the player owns an item or ability. Simply check that and only use the screen drawing command when appropriate.
Use rotatesprite or some variant of it in a display event to draw things on the hud. Set the RS_NOCLIP bit on the orientation paremeter if you DON'T want it affected by screen_size (the + and - sizing). EDIT: when you study the rotatesprite wiki entry and experiment with it, note that the last 4 parameters have to do with screen boundaries.
Presumably you have declared your own gamevars and set them appropriately depending on whether the player owns an item or ability. Simply check that and only use the screen drawing command when appropriate.
This post has been edited by Danukem: 05 September 2020 - 05:10 PM
#3 Posted 07 September 2020 - 01:23 AM
Thanks for the help! That worked.
This post has been edited by HELLMOUSE: 07 September 2020 - 01:25 AM
Share this topic:
Page 1 of 1