Here is the script if anyone needs it var currentSelectedButton = $gameVariables.value(1) var start = 1 var last = 9 var normalTone = [0,0,0,0] var darkTone = [-68,-68,-68,0] var frame = 1 for (var i = start; i < last + 1; i++) { var id = i + 1 $gameScreen.tintPicture(id, normalTone , frame) if (i == currentSelectedButton) { $gameScreen.tintPicture(id, darkTone , frame) } }
Here is the script if anyone needs it
var currentSelectedButton = $gameVariables.value(1)
var start = 1
var last = 9
var normalTone = [0,0,0,0]
var darkTone = [-68,-68,-68,0]
var frame = 1
for (var i = start; i < last + 1; i++) {
var id = i + 1
$gameScreen.tintPicture(id, normalTone , frame)
if (i == currentSelectedButton) {
$gameScreen.tintPicture(id, darkTone , frame)
}
}
Let's go!
Wow so advanced.
Thank you XD
i dont know how rpg maker works, but in modern javascript, you should use let and const instead of var
You are correct, I actually explain that in my Javascripting for RPG Maker video. I tend to default to var as a bad habit but will try to use let.