Create a new variable called pDifference for example.
Set pDifference to abs(player1-Player2)
abs gives the absolute value, so even -5 will return 5
Create Growing Sprite Buttons.
See this post:
http://www.scirra.com/forum/tile-based-digging-games_topic44909.html
Also this forum post has tons of useful information:
http://www.scirra.com/forum/how-do-ifrequently-asked-questions_topic45416.html
Ashley,
I will try to resubmit without the metro plugs, the official plugin and just have ads always run and see if that clears it up. Thanks.
I'm updating one of my games, changing it to free and adding Ad support via the Metro plugin.
I have never had the game lock up in my tests via the simulator or desktop. The App Certification passes the app with 0 issues. However the last 2 times I uploaded to Microsoft it fails stating the game locks up. The only thing I did to the game was add the Metro plugin.
Off course they don't tell me where the game is locking up. Any advice?
Well you use the cloud compiler from Ludei.
cocoonjsservice.ludei.com/cloud/login
After it's compiled it sends you an email with the APK for droid and X-Code project file for iOS.
Here is a quick guide.
wiki.ludei.com/cocoonjs:cloud
iunkn
I'm trying to install it on my windows 8 box and I am getting an error as well.
I installed via admin command prompt. All the files are in the metro folder under plugins.
The error is
<img src="http://www.arcadeinabox.com/screen.png" border="0" />
Fixed the issue, my common.js was corrupted.
I have a game on iOS that was compiled with CocoonJS and webstorage works fine.
What did you use to convert the game to iOS?
Develop games in your browser. Powerful, performant & highly capable.
One More, creating a Score Combo system
Just posted up my second video, creating an Arcade Style High Score
That's a little beyond my simply/basic tutorials. Sorry.
Thanks Yann,
I was going to do a follow up video with "Advance" health bar stuff, so thanks for that tidbit, I will use it :)
First tutorial is done. Health Bars.
Have you tried using the Pin behavior?
https://www.scirra.com/manual/99/pin
Does your sprite have 2 frames in the animation? One facing left and one facing right?
On key pressing left, use frame 1
On key pressing right, use frame 0
Something like that? Or did I misunderstand your question?