RPG Maker MV/MZ Eventing a Picture Based Menu - Script Improvements - Advanced

Поділитися
Вставка

КОМЕНТАРІ • 9

  • @heroslegendstudios1658
    @heroslegendstudios1658  2 роки тому +3

    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)
    }
    }

  • @skate472969
    @skate472969 2 роки тому +1

    Let's go!

  • @mauigamestudio
    @mauigamestudio 2 роки тому +1

    Wow so advanced.

  • @charlesbenca5357
    @charlesbenca5357 2 роки тому +1

    i dont know how rpg maker works, but in modern javascript, you should use let and const instead of var

    • @heroslegendstudios1658
      @heroslegendstudios1658  2 роки тому

      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.