Images for a room
Jhames
23 Apr 2009, 13:39I don't know if that request is aks before.
(Sorry my english)
I appreciate very much, when you enter in a room, there's a picture for thar room.
But, in that way the picture don't scroll in the screen.
Only the text scroll behind the picture.
¿Is that posible?
(Sorry my english)
I appreciate very much, when you enter in a room, there's a picture for thar room.
But, in that way the picture don't scroll in the screen.
Only the text scroll behind the picture.
¿Is that posible?
Alex
23 Apr 2009, 17:32It's not possible yet to make a picture for a room that won't scroll. It's on my "to do" list though to add a feature to let you specify a custom pane on the window where you could put a static picture - this won't happen for a while though.
olivialove
14 May 2013, 23:45I was looking for something like that myself. Is this possible now? Is there any update?

Pertex
15 May 2013, 11:08Yes, you can add a room picture for every room. Look at the top of the room tab of a room
olivialove
15 May 2013, 23:17Thank you, that is very helpful.
Now I am wondering it if is possible to change that room picture in game play. Like maybe an explosion goes off in the room and now the picture shows that. Or maybe replacing the room picture with a picture of a character the player is talking to. I tried changing the object (room) attribute (room.picture), but that didn't work. I could just move the player to another room I guess, unless there is a better way to do it.
Now I am wondering it if is possible to change that room picture in game play. Like maybe an explosion goes off in the room and now the picture shows that. Or maybe replacing the room picture with a picture of a character the player is talking to. I tried changing the object (room) attribute (room.picture), but that didn't work. I could just move the player to another room I guess, unless there is a better way to do it.
Sora574
16 May 2013, 01:16olivialove wrote:Now I am wondering it if is possible to change that room picture in game play. Like maybe an explosion goes off in the room and now the picture shows that. Or maybe replacing the room picture with a picture of a character the player is talking to. I tried changing the object (room) attribute (room.picture), but that didn't work. I could just move the player to another room I guess, unless there is a better way to do it.
The 'room.picture' attribute is a string that tells the game what picture to get. It should really only be changed if you leave the room and come back.
To change the picture while you're in the room, just use:
SetFramePicture("image1.jpg")
Where 'image1.jpg' is the name and format of your picture.[/list]
If you want it to stay that image even if you leave/re-enter the room, you can just put this into a 'Set a variable or attribute' script:
room.picture = "image1.jpg"

Pertex
16 May 2013, 10:53


Sora574
16 May 2013, 11:37Pertex wrote::?:![]()
Why not just using the 'Set frame picture' command (SetFramePicture())
That didn't work for me with the room picture...

Pertex
16 May 2013, 20:27What exactly did not work?
Sora574
16 May 2013, 20:37Hmm... Nevermind, I went back and tried it again and it worked perfectly.
I guess I did something wrong without knowing it. Sorry
I edited my earlier post.
I guess I did something wrong without knowing it. Sorry

I edited my earlier post.

spoke01
20 May 2013, 18:55I found that including the image in the room description (add image option - r/h side) works best for me (personal choice). It scrolls up with each text line shown, but that's okay.
Sora574
20 May 2013, 19:20spoke01 wrote:I found that including the image in the room description (add image option - r/h side) works best for me (personal choice). It scrolls up with each text line shown, but that's okay.
Most people prefer for the room picture to always be shown while you're in the room. That's why there's a 'room picture' option in the 'Room' tab now, so it won't scroll with the text.
I'm not saying your way is wrong, but it's not the most preferred method.

Pertex
21 May 2013, 06:41Sora574 wrote:Most people prefer for the room picture to always be shown while you're in the room.
But then you will lose lots of space in the game window. My solution for this problem is to show a large image in the room description the first time the player enters the room. After that I display a smaller image in a new pane on the right side.