Has anyone written events to create scrolling textboxes that can be clicked through, like in JRPGs or Phoenix Wright? Possibly that can import text from outside files? How could something like that be done?
I'm at the point of wondering about scrollable window box too, like with a mouse wheel, but for now we might have to use pagination technique, that is, press something to keep the content going instead of scrolling through things.
Here's a quick and dirty example: dl.dropbox.com/u/1990899/dialogue.capx
You can wrap something like that into a function for future reuse. Those are probably not the best choices of events to make it perfect but that's the idea.
Develop games in your browser. Powerful, performant & highly capable.
I whipped up a demo of loading XML dialog, and displaying it in the way that I think you're looking for.
There may be more efficient ways to accomplish the same effect. This is just the first one that came to mind.
Thanks zatyka. Your example is a lot cooler.
I might use json instead of xml though because I heard cocoonjs has trouble with xml objects. Unless that's sorted now.
Thanks everyone for your replies!
Zatyka, your demo was awesome and your dialogue hilarious.