Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Android Development in CopperCube

dynamogames
Registered User
Quote
2022-07-19 22:10:07

I recently published a project I'm working on Android and I've been having few issues. I noticed that 2d overlays with color don't show on Android, it just shows black.
I also noticed that SM Animated HealthBar does not show on Android too and I also added a feature that when enemy shoots at Player screen fades to a red color and its not also working on Android. There is another feature too where some enemies are to respawn after they are destroyed but it doesn't also work on Android


dynamogames
Registered User
Quote
2022-07-19 22:11:49

Please take note that all the features above work perfectly on Windows version (.exe). I'll like to ask if all these are not working on Android because of the limits of CopperCube on Android or I'm not doing something right.


just_in_case
Moderator
Quote
2022-07-20 08:00:36

Yes, background color or drawing colored rectangle won't work on Android, if you want you can use images on 2D overlays, and images with transparency also work, there are many limitations of Coppercube's direct android port, It is recommended that you create your game as webGL and then port that webGL game as an Android app.


dynamogames
Registered User
Quote
2022-07-20 08:35:17

Thanks @ just_in_case
I'll also like to ask if a published version of a CopperCube game in WebGL can work on Android as it works on windows using browser like Chrome or Firefox.


dynamogames
Registered User
Quote
2022-07-20 08:40:59

Which software or app can be used to convert the WebGL games to Android?


just_in_case
Moderator
Quote
2022-07-20 09:22:08

Yes, It will work the same, as It works on the webGL in desktop browsers, there are many tools available, but the one that others are using and provide you an easy-to-understand interface with a lot of features is web2apk.


dynamogames
Registered User
Quote
2022-07-20 11:15:07

Thanks @just_in_case but I sent the .html version of my game to my phone and I tried opening it but I could not open it with Google Chrome, google chrome was not one of the options to open it on Android and I don't know how to open it directly from Chrome but I have enabled the WebGL extension on Chrome.


just_in_case
Moderator
Quote
2022-07-20 12:20:33

You need to run it via a server either a local server or an online server, You probably just copied pasted, the HTML and data folder to your phone and tried opening it. That is why it was not working. In order to test if it's working or not, try creating a local server, or simply publish your game to itch.io as a private game, and then open the link to your game on your mobile device. It should run fine then. Or you can use the web2Apk tool to convert your game into android app, then it won't need a server to run.


dynamogames
Registered User
Quote
2022-07-20 13:38:35

Thanks so much @just_in_case


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact