|
Title: getting room height from different rooms Post by: BoxedLunch on July 26, 2012, 11:02:00 PM Does anyone know of a way to get the height/width of a room that you aren't currently in in Game Maker? I know you can get the height/width of the room you're currently in using room_height and room_width, but i can't seem to figure out how to get it from other rooms. I know i could probably put it all into a list and grab the numbers when i need them, but i'm hoping to use something simpler than that.
Title: Re: getting room height from different rooms Post by: C.A. Silbereisen on July 27, 2012, 03:24:38 AM Nope, just tested.
Both "roomname.room_height" and "with (roomname) room_height" just returned the height of the current room. Looks like you'll have to use an array. Title: Re: getting room height from different rooms Post by: JMickle on July 27, 2012, 07:48:37 AM room_get_height()??? is that a command? i think it shoudl be
Title: Re: getting room height from different rooms Post by: C.A. Silbereisen on July 27, 2012, 09:16:38 AM no
see thats one of the things i hate about gm, that it's fussy when youre trying to manipulate or get data from a room you arent in. most games i make these days only have 1 room and i load the all levels into it from external files or w/e Title: Re: getting room height from different rooms Post by: BoxedLunch on July 27, 2012, 09:24:38 AM i guess i'll just put all of the data in as i go then. :shrug2:
|