I am trying to see how the map media settings work but I can't figure out how to add a story. I selected "story" from the "type" menu and popped some bitmpas in the "Story" folder that's in the "Data" folder. When I run my project I get the right screen I think (with arrows and an "X") but no images.
I looked over the docs, but didn't find anything about this kind of media. Do the files need to be of a certain type or is this something that needs to be done through scripting? It looks like it should be pretty straight forward so I am probably missing something. Could someone point me in the right direction?
Thanks
Are the images multiples of 2?
(2x2, 4x4, 8x8, 16x16, 32x32, 64x64, 128x128, 256x256, 512x512, 1024x1024, 2048x2048, etc.)
You can either rename the story items to the same names as the original ones or else you can redefine them in the interface scripts (I think..) but you would probably want to edit the scripts anyway in order to have the story page pop up at a certain time.
hitsu_g Wrote:I am trying to see how the map media settings work but I can't figure out how to add a story. I selected "story" from the "type" menu and popped some bitmpas in the "Story" folder that's in the "Data" folder. When I run my project I get the right screen I think (with arrows and an "X") but no images.
I looked over the docs, but didn't find anything about this kind of media. Do the files need to be of a certain type or is this something that needs to be done through scripting? It looks like it should be pretty straight forward so I am probably missing something. Could someone point me in the right direction?
Thanks
There's really no docs for this, so my explaination will have to do ....
In data/story, put a new folder. Give it a name for the story. For this example, let's use "My Story".
In start story, put PNGs labeled 01.png, 02.png, 03.png, etc., for as many pages as you have. Make sure they are powers of 2 (as mentioned above.)
In the script, just use:
Code:
iface.interaction.startStory('My Story');
The literal string 'My Story' is the name of the folder ... or you can do it the easy way and just use the "media" option under "menu" in the map editor.
[>] Brian
I see. Thanks all for your replies. I was missing the numbered files (01.png, etc) and was just using ones with regular names. Works like a charm now. BTW, I just had my kids sitting with me and playing at making a game - they loved it! We'll have a lot of fun with this.
Thanks!