A friend of mine asked for some scripts that emulate Sonic's system of acquiring rings and display their count on screen, so I decided to share it with all my fellow developers.
The ring acquisition is a simple didhitscript that changes a entityvar on the character that touched the ring. Special credits for @O Ilusionista for teaching me how to work with didhitscripts for items!
The ring display is a ondrawscript that shows a declared entityvar on the player character.
If people ask for more features, like ring loss on damage or extra lives on every X rings gained, I might update it later.
The ring acquisition is a simple didhitscript that changes a entityvar on the character that touched the ring. Special credits for @O Ilusionista for teaching me how to work with didhitscripts for items!
The ring display is a ondrawscript that shows a declared entityvar on the player character.
If people ask for more features, like ring loss on damage or extra lives on every X rings gained, I might update it later.