Here, I've created a modified version of this that draws the numbers to the vlayer. This would be a lot easier if there was a write vlayer command but there isn't right now. Here's the important code I've added to the global:
Before the loop:
set "spr0_width" to 5
set "spr0_height" to 18
set "spr0_static" to 1
set "spr0_vlayer" to 1
During the loop (replaces everything between 'goto #k' and 'cycle 1'):
loop start
set "vch2,('loopcount'+1)" to "('num_keys_&LOOPCOUNT&'>=10 ? 'num_keys_&LOOPCOUNT&'/10+48 : 0)"
set "vch3,('loopcount'+1)" to "('num_keys_&LOOPCOUNT&'%10+48)"
loop for 15
put c?? Sprite p00 at 75 0
The rest of the vlayer UI is predrawn on the vlayer (if you haven't been keeping up with MZX releases recently, this particular feature was added in 2.91).
edit: actually attached it this time, whoops.
keyz_lol_vlayer.mzx (6.28K)
Number of downloads: 1
This post has been edited by Lachesis: 04 August 2019 - 06:24 PM