S
ShinkoNet
Guest
Hi,
I would like to import an image from a person's PC and make it the background image for the room.
This code makes the variable "custombackground" (which initially equals "") store the complete address of the image after drawing a button that browses for it. How would I go about making this the room's background?
Thanks.
I would like to import an image from a person's PC and make it the background image for the room.
This code makes the variable "custombackground" (which initially equals "") store the complete address of the image after drawing a button that browses for it. How would I go about making this the room's background?
Code:
if (draw_button2(rw-200,24,72,"Background") && wmenu=0) {
fn=string(get_open_filename_ext("Background Image (*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif","",programpath,"Add a Background Image to the Stage."))
if (file_exists_lib(fn)) {
custombackground=programpath+filename_name(fn)
}
}
}