The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: DoctorTodd on May 28, 2012, 06:29:29 PM

Title: [Resolved][VX]Checking Scene
Post by: DoctorTodd on May 28, 2012, 06:29:29 PM
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?
Title: Re: [VX]Checking Scene
Post by: modern algebra on May 28, 2012, 07:18:30 PM
Code: [Select]
$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 =.
Title: Re: [VX]Checking Scene
Post by: DoctorTodd on May 28, 2012, 07:19:20 PM
Thanks MA.  :)