Reply to comment

SetBackground("background file");

Sets the background of the room to the image passed as parameter. The image file must be in the resources\backgrounds folder of the unit which contains the room. The background change often needs to change the value of the Table variable that sets the y plain of the room. These changes are made before the StartPhysics() call.

Example: 

//Change background
SetBackground("NewRoom.jpg");
//Change the Table variable
Table=650;
//Start physics library
StartPhysics();
//The rest of the code of the room

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.