You need to save them locally.
For example,
System.OnEndOfLayout
->WebStorage.SetLocalValue{SavedCoins(GlobalVarName)}
The set the GlovalVariable to LocalStorage.GetLocalKey{SavedCoins}
Develop games in your browser. Powerful, performant & highly capable.
Use the HTML_DIV plugin maybe: http://www.scirra.com/forum/plugin-jessejohs-html-elements-pack_topic47084_post294874.html
your question is way to broad at the moment. Users are allways willing to help. Im one of them. But your questions need to be split.
I suggest reading the How Do I F&Q - http://www.scirra.com/forum/how-do-ifrequently-asked-questions_topic45416.html <-- There are many topics that might aid you.
Otherwise post more individual questions in that forum <img src="smileys/smiley1.gif" border="0" align="middle">
Pode, What do i have to call with the CallJS plugin? I looked at there API docs, There was too much stuff for me to figure out what i need. <img src="smileys/smiley1.gif" border="0" align="middle" />
Have you tried modifying the HTML file C2 exports with the Audio Engine?
Like this: http://activeden.net/item/youtube-music-player/162816?WT.ac=free_file&WT.seg_1=free_file&WT.z_author=CodingJack Obviously this is AS3 but this is what i mean <img src="smileys/smiley1.gif" border="0" align="middle">
I was just thinking! If you have your sound hosted on youtube, make it private or something.
The use this plugin: http://www.scirra.com/forum/plugin-jessejohs-html-elements-pack_topic47084_post294874.html <-- the HTML IFrame one. you can call the youtube link and play the track, Meaning you'll have audio!!.
you'll want to place it out of view though <img src="smileys/smiley1.gif" border="0" align="middle">
I would also prefer PhoneGap, It's easier to work with. But if you want audio in your game your going to have to use AppMobi. the audio issue is nothing to do with the developers of Construct2, its HTML5 in general, HTML5 + audio is just a bad combination right now. HTML5 is a relatively new technology. You might just have to wait <img src="smileys/smiley6.gif" border="0" align="middle">.
There is a audio fix found here: http://www.scirra.com/forum/solution-nolag-audio-sfx-on-ios_topic45993_post288090.html.
I have not actually tested this with a build on phonegap, but it might work. I tested it as a web app and it worked.
I guess you could use the custom plugin: http://www.scirra.com/forum/plugin-jessejohs-html-elements-pack_topic47084_post294874.html <-- The HTML IFrame one, and call your webapp into a C2 project. Audio might work then..
Its a known issue getting audio to work with PhoneGap.
In the latest built (r77) there is a appMobi export option, If audio is going to work then its most likely with AppMobi.
Interesting read. Did you try add audio to the project? But
Great!!! can't wait to get my hands on it <img src="smileys/smiley1.gif" border="0" align="middle" />
But canvas does not have a export to '' option, Does it?
Member since 25 Nov, 2011