Tutorial-Blog Eventing a Whack-A-Mole Minigame
Official Content Discussion ThreadsAre you kidding me? I just did a commission for this, LOL.
Nice! ^_^
A small caveat...probably won't break anything but better to be safe. In the script call there's this line:
That will implicitly declare
A small caveat...probably won't break anything but better to be safe. In the script call there's this line:
JavaScript:
target = $gameMap.event($gameVariables.value(1))
target as a global variable, allowing it to persist after the script call ends. You can avoid that by using one of the local declaration keywords: var, let, or const. E.g.
JavaScript:
const target = $gameMap.event($gameVariables.value(1))
Original thread: https://forums.rpgmakerweb.com/threads/eventing-a-whack-a-mole-minigame.147468/
