Character Portrait

I want to be able to have a picture of my character off to the side somewhere and have it be able to be manipulated by scripts to change the image to ones with different facial expressions and such. I know this is sorta veering out of the realm of text based, but I really think it would add a lot to the game I'm working on.

Without revealing too much, the protagonist in my game is a shape shifter. If he turns into a lamp, I want the player to be able to see that lamp rather than just read the text "You're now a lamp".


Sounds like a job for KV.


I was wondering about this too. How do you code a secondary picture sidepane (maybe to the left of the center pane)? The Pixie did it in his game "Deeper", using a lot of HTML I presume. Changing the images should be fairly straightforward.


There is a guide here:
https://github.com/ThePix/quest/wiki/Images-Part-01:-Basic-techniques

For some reason the images are not show, I blame irony, but if you go down to just above "If you are editing online...", it explains what to do. I will look to moving it to the main docs.


K.V.

This is how I get my images over to the left:

"<img id='leftImage' src='https://i.imgur.com/3s3Ekp2b.png' style='margin-left:4px;margin-top:4px;position:absolute;top:0;left:0;' />"

I stole that from Pix, but I can't find the page with the source material.


K.V.

To make it go away:

JS.eval("$('#leftImage').hide();")

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums