picture ("gravestone.png")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
<img src="gravestone.png" />
"<img src=\""
GetFileURL("gravestone.png")
"\" />"
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
<img src="gravestone.png" style="float:left;"/>
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"float:left;\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"float:right; padding:15px;\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"display: block; margin-left: auto; margin-right: auto;\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"float:left;opacity:0.5;\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"float:left;width:100px;\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
msg ("<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"position:absolute;top:0px;left:0px;\" />")
msg ("<img src=\"" + GetFileURL("celebrate.png") + "\" style=\"position:absolute;top:0px;left:0px;\" />")
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
s = "<div style=\"position:relative;\">"
s = s + "<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"position:absolute;top:0px;left:-200px;\" />"
s = s + "<img src=\"" + GetFileURL("celebrate.png") + "\" style=\"position:absolute;top:0px;left:-200px;\" />"
s = s + "</div>"
msg (s)
msg ("You are in a room. A large room, entirely white, nothing here but a gravestone.")
msg ("Your gravestone.")
"<img src=\"" + GetFileURL("gravestone.png") + "\" style=\"display: block; margin-left: auto; margin-right: auto;\" />"
The picture command gives no control over the image, so we need to output the raw HTML. Sounds scary? You bet!
The HTML code will look kind of like this; "img" is the tag for image, and "src" is an attribute that indicates the source of the image:
Code: Select all
<img src="gravestone.png" />
If only it was that simple. That will work offline, but online, you need a full URL for the file to be found. Fortunately Quest has a function built-in to do that for you, and it will work whether your game in online or offline. This means you need to add together three strings:
Code: Select all
"<img src=\""
GetFileURL("gravestone.png")
"\" />"
The tutorial on pasting code simply shows me how to create a function etc. and does not appear to help in this situation<enter type="script">
picture ("P1010472d.jpg")
</enter>
picture ("P1010472d.jpg")
Davidmarks wrote:
Where do I find this code ? If I look at code view there is nothing like that. The only reference to my image in code view is :The tutorial on pasting code simply shows me how to create a function etc. and does not appear to help in this situation<enter type="script">
picture ("P1010472d.jpg")
</enter>
<enter type="script">
picture ("P1010472d.jpg")
</enter>
<enter type="script">
msg ("<img src=\"" + GetFileURL("P1010472d.jpg") + "\" style=\"display: block; margin-left: auto; margin-right: auto;\" />")
</enter>
If there are JPGs, the file names should end .jpg. Chances are they do, and Windows is set to hide the file extension, and all you need to do is add it to your code:
"<img src=\"" + GetFileURL("Apoca-Title-page0002.jpg") + "\" style=\"display: block; margin-left: auto; margin-right: auto;\" />
Just a chance you also need to rename the files to include the extension, so if it still does not work, check that.