Jump to content


Photo

room_set_width/height not working


  • This topic is locked This topic is locked
2 replies to this topic

#1 Digisynth

Digisynth

    GMC Member

  • Validating
  • 55 posts

Posted 01 May 2012 - 07:06 PM

Consider one object with this code in its create event in a room called room0:

room_set_width(room0,100);
room_set_height(room0,100);
show_message(string(room_width)+"#"+string(room_height));

The message box then returns:

640
480

This proves that no changes to the room's width and height have been made. Why so? Can't one change the properties of an active room?

#2 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Retired Staff
  • 15729 posts
  • Version:GM:Studio

Posted 01 May 2012 - 09:35 PM

you can't change the room size of the current room or a persistent room that has been visited. Call the functions from a menu room and it should work.
  • 0

#3 xot

xot

    GMC Dismember

  • Retired Staff
  • 4772 posts
  • Version:GM:Studio

Posted 02 May 2012 - 06:43 AM

Some people have said that it can be done from the current room if it is then restarted, but icuurd12b42's suggestion is the documented and correct way to handle it.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users