[Open Assets] Lua - Ring Counter

This content may be freely modified and/or maintained by anyone.
Status
Not open for further replies.

SonicX8000

Graphic & Sprite Modder.
Judge
Been trying to get a Perfect Bonus but just don't know how many rings are in the level? Are you worried that you THINK that you may have all the rings collected but there's that one lonely ring that you forgot to grab? Lucky for you... this script will show you the way to nabbing that Perfect Bonus.

This script scans the Rings, Coins, and Super Ring Boxes within the map and adds them to a counter which appears next to your collected rings. The Ring Counter tells you the grand total of Rings & Coins that are within the level and as you collect Rings & Coins the counter changes. If the counter reads 0 then there are no rings within the map or you got all of them. *Note: You still need to keep all the rings in order to get the Perfect Bonus.*

With some help I was able to optimize it so that it doesn't lag in object-heavy maps and it only shows during Single Player & Coop. *It shows during Race but I don't think anyone is going to focus on getting Perfects during that gametype.* It's pointless to have it show during Match/CTF/etc. and during Nights Mode the HUD would look out of place.

With all that said... it's time to start tackling those Perfect Bonuses.

*EDIT*
Some slight edits to the Ring Counter in Splitscreen Mode. "RINGS LEFT" is now yellow and the positioning has been moved slightly. This is hopefully the last update for it.
 

Attachments

  • srb2ringcounter1.gif
    srb2ringcounter1.gif
    5.5 MB · Views: 1,624
  • srb2ringcounter2.gif
    srb2ringcounter2.gif
    4.2 MB · Views: 899
  • srb2ringcounter3.png
    srb2ringcounter3.png
    33.5 KB · Views: 986
  • lua_ringcounter.zip
    1.2 KB · Views: 781
Last edited:
This is amazing, really helpy :p. Thanks to this now I know how many rings I've put into my map xD. Amazing job, but it's just a bit frustrating that this activates de gamemodified to true, it is really helpful. Rating 10 :D
 
Amazing job, but it's just a bit frustrating that this activates de gamemodified to true, it is really helpful. Rating 10 :D
It modifies the game so it trips that. You can just add the script and write down the rings it has somewhere for that map.

Put it right on the split for 2P
Was just thinking that. I'll try messing with the script and see if I can get it to display somewhere else.

*EDIT*
Splitscreen is now supported. The Ring Counter is smaller and put under the score for both players and added a yellow "RINGS LEFT" text with the number next to it.
 
Last edited:
Hey, it's like Sonic 2 Delta!

For those who doesn't know, got to it's Sonic Retro article. Too lazy to say about that.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top