Hlep
Mystifistisk
20 Jun 2016, 13:29Hey
~ Warning
I just recently began using Quest and though I'm somewhat experienced with simple flash-coding, I am not very familiar with Javascript nor HTML.
~
I've been trying to implement this into my game, which on its own works just perfectly.
Only thing is, I've been using sort of my own static "imagebox" printed with msg (game.statusbox). Unsurprised and to my dissatisfaction the box changes opacity as well. Can I somehow either avoid changing the opacity of both text and box by isolating the text? Or alternatively change the box opacity afterwards, perhaps make it permanent?
My skills are somewhat limited but if above is impossible, what kind of alternatives are there to msg (game.statusbox)? (which I'm guessing is going to be the root of the problem.) That would be appreciated as well.
"imagebox"
Bonus question:
Is there a way to display .swf files in Quest?
~ Warning
I just recently began using Quest and though I'm somewhat experienced with simple flash-coding, I am not very familiar with Javascript nor HTML.
~
I've been trying to implement this into my game, which on its own works just perfectly.
if (game.lastoutputsection > 1) {
JS.eval ("$('.section"+(game.lastoutputsection-1)+"').css('opacity', '0.5');")
}
Only thing is, I've been using sort of my own static "imagebox" printed with msg (game.statusbox). Unsurprised and to my dissatisfaction the box changes opacity as well. Can I somehow either avoid changing the opacity of both text and box by isolating the text? Or alternatively change the box opacity afterwards, perhaps make it permanent?
My skills are somewhat limited but if above is impossible, what kind of alternatives are there to msg (game.statusbox)? (which I'm guessing is going to be the root of the problem.) That would be appreciated as well.
"imagebox"
<imagebox><![CDATA[
<div id="imgbox_div" style="padding: 0px;font-weight: bold;border-radius: 5px;text-align:center;margin-top:50 px;color:maroon;font-size:14pt;position:fixed;right:0px;top:240px;border:grey solid thin;background-color:#FCF0EA;width:401px;height:239;">
Picture.
</div>
]]></imagebox>
Bonus question:
Is there a way to display .swf files in Quest?

jaynabonne
20 Jun 2016, 13:41You could try calling "StartNewOutputSection" between the image and the first text. That will put the image in a different section from the text that gets faded out.
Mystifistisk
20 Jun 2016, 14:22Yup. That did it... =D
Thank you.
Thank you.