Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved][VX]Checking Scene

Started by DoctorTodd, May 28, 2012, 06:29:29 PM

0 Members and 1 Guest are viewing this topic.

DoctorTodd

I'm releasing an update for my game where their is a clock however I want it to only appear when the Scene is Scene_Map. I tried using $scene = Scene_Map in a conditional branch but I got an error in main. Does any one know the proper way to check the scene?

modern algebra

$scene.is_a?(Scene_Map)

While it would be incorrect in this case, when you are trying to check equality normally in the future, it is ==, not just =.

DoctorTodd