RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
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