Resizing graphics
NorthernByrd
19 Nov 2016, 09:45Hey all :-)
This is my first post and my first attempt at creating a game
I'm struggling to figure out how to manipulate graphics, i've read the help doc
https://textadventures.co.uk/forum/samples/topic/5566/how-to-control-how-images-are-displayed
Which would be really helpful - if i knew how to find my html code so i can edit it
the post says
"The picture command gives no control over the image, so we need to output the raw HTML. Sounds scary? You bet!"
How do i output the raw HTML ?
When i look at my game in code view (i thought that was the place to make changes) the suggested coding doesn't work there.
Help would be sooooo much appreciated - i get the feeling the answer is really simple but i just can't figure it out
Thanks!!
The Pixie
19 Nov 2016, 09:56Rather than looking at the whole game in code view, just do it for each script. There is a row of icons above every script and something like the seventh is "code view".
Read further down the tutorial, where is talks about msg
and it explains how to output ther raw HTML.

NorthernByrd
19 Nov 2016, 10:34Hi
Thanks for the reply
But i still can't get it to work :-(
I'm working offline on the desktop version:
In room i go to scripts and "add new script" > set frame picture.
Then upload my image
Then "add new script" > print
in code view i see this
SetFramePicture ("DB.jpg")
msg ("<img src="" + GetFileURL("DB.jpg") + "" style="float:left;width:60px;" />")
What am i doing wrong?
Thanks
The Pixie
19 Nov 2016, 16:11You need to escape double quotes inside of strings, with back slashes.
msg ("<img src=\"" + GetFileURL("DB.jpg") + "\" style=\"float:left;width:60px;\" />")
Also, try it without SetFramePicture ("DB.jpg")
.

Anonynn
19 Nov 2016, 18:07I was having this problem at first too. You have to make sure that the msg ("") is set to be an expression too otherwise it'll have errors.
If need be, post what Pixie has shown you and then go in and manually add the \ <--- the slashes afterward.

NorthernByrd
20 Nov 2016, 14:21Thanks!
All good now :-D