Are you lazy or sometimes forget to set the view in your games? Here:
/// roms_set_view(stage indicator, width, height);
// Checks and sets the view data for every room.
for(i=0; i<999; i+=1)
{
// If a room exist, change view data.
if(room_exists(i) == true)
{
if(room_get_name(i) != room_get_name(room)) // There's no need to set the initializer room.
{
if(string_pos(argument0, room_get_name(i)) != 0)
{
room_set_view(room_get_name(i), 0, true, 0, 0, argument1, argument2, 0, 0, argument1, argument2, 32, 32, -1, -1, obj_camera);
}
else
{
room_set_view(room_get_name(i), 0, true, 0, 0, argument1, argument2, 0, 0, argument1, argument2, 32, 32, -1, -1, noone);
}
}
}
else // Return the number of rooms existing.
{
return i;
}
}
Call this at the game start. argument0 is used to check if a room is a playable act. (if you call stages like this "rm_???act?", use "_act") argument1 is the screen width and argument2 is the screen height.
By Aleks