CreativeMind's Forum Posts

  • Hello everyone,

    I'm about to publish an app on Google Play and had to sign and zipalign that app first. Does anyone know if this is needed for iOS apps, too? Can I simply upload my iOS-app (wrapped with CocoonJS) to the App Store, or are there any further steps to take?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello everyone,

    I`m curently encountering some issues with CocoonJS Launcher and tried to solve them myself, but I won`t succeed, so maybe there is some clever person out there who can help me:

    I just finished my first small project and installed CocoonJS Launcher on my android smartphone (Samsung Galaxy S2). I exported the project via the option "CocconJS" and uploaded the .zip-file to dropbox. I stored the .zip-file in a folder which I gave public access to. When I open CocoonJS Launcher and enter the URL, a black screen appears and the framerate goes to about 62FPS. When I touch the FPS-button, an error message appears which is already listed in the support-ludei-FAQ. I quote from the FAQ:

    "if you see the following error in the debug service: “Could not find anything to be executed. If you are using a ZIP file, please, verify that the main HTML or JS file is in the root of the ZIP file (not inside any folder). If you are using a folder path directly, please, check that the main HTML or JS file is stored inside of it.” it means that there is no executable file located in the root of your game, make sure when zip-ing your game that you compress the contents of the folder and not the folder itself."

    This doesn`t help me, because the .zip-file created by C2 contains an executable JS-file (if I`m right). Maybe someone knows how to solve this problem? Things I`ve thought about are:

    1. It might be an issue of dropbox. So I uploaded the .zip-file to fileupload.net, but then when entering the URL into CocoonJS Launcher, it shows the fileupload.net-website somehow with a couple of ads and download-buttons that won't work...strange.

    2. When exporting the project, the script-minifier didn`t work, but it told me that the exporting would still work.

    3. Do I necessarily need the Android SDK installed on my smartphone?

    4. Do I necessarily need the CocoonJS-object in my project, even if I don`t use any of its functions?

    Now thats a long problem description... thanks in advance!

  • Yes, I could actually shift the position of the text-box depending on the number of digits, haven`t thought about that. But I guess running an if-condition after every score increase won´t be helpful to increase the performance, either...

    So the main question is: Does the text-object really drop the framerate or have these issues been fixed over the last two years? Maybe someone knows about that

  • Thanks for the answers,

    I got the information to not-use text object from here: https://www.scirra.com/tutorials/298/performance-tips-for-mobile-games It says: "NEVER use text object", which seemed logically to me. Sadly, I can`t find any possibility to adjust the alignement in the properties section, or find a tutorial where this is described (maybe I`m just to blind to find it).

    The text-demo shows how to setup the text within the text-object to be aligned to the right, which is great, but not exactly what I need, see above...

  • Hello everyone,

    I`m using a textbox to display the score in my game. I`ve read that using textbox is more efficient than using the text-object, concerning the framerate. So here`s my question:

    Is there any way to align the text, which is shown in the textbox, to the right side of the textbox? I want to show the score in the top right corner of the layout. When the score is increasing from 99 to 100, the additional third digit will leave the layout because it is always added to the right site of the number. Adding the additional digit to the left site would solve my problem. Any ideas?

  • Damn, I can`t do it like this? That makes me sad. Now I gotta write if-conditions for each of the 40 enemies... but thanks, guys!

  • Obviously I failed in describing my problem clearly Thanks for the answer, I`ll try to point out what I mean in a more understandable way:

    I want the system to check first which family-instance has the family instance variable =2, and then spawn only those enemies for which the variable is =2. I`ll give you another example:

    There are three enemies: Bug-enemy, robot-enemy and weirdo-enemy. I want them to spawn randomly. I could use a code like this, which is very inefficient:

    System: Every 5 seconds -> Set randomnumber=choose(1,2,3)

    If randomnumber=1-> Spawn bug-enemy

    If randomnumber=2-> Spawn robot-enemy

    If randomnumber=3-> Spawn weirdo-enemy

    This code is very inefficient. I want to use a more elegant way by creating a family called "Enemies" and the family instance variable "Enemy_ID". The values of this family instance variable are 1 for the bug-, 2 for the robot- and 3 for the weirdo-enemy. I want the code to look something like this:

    System: Every 5 seconds -> set randomnumber=choose(1,2,3)

    If randomnumber=Enemies.Enemy_ID-> Spawn only the enemy, whose Enemy_ID=randomnumber

    Is it more clear what I mean now? How do I have to adjust the second code in order to make it work correctly?

  • Hello everyone,

    I want the system to create an object of a family with a certain family instance variable. I`ll give you an example:

    -There is a family called "Enemies" and the family instance variable "Enemy_type"

    -There are two Enemies: Enemy1 with Enemy_type=1 and Enemy2 with Enemy_type=2, both are part of the family "Enemies"

    -I want to achieve something like this: System: Every 5 seconds -> Create Object "Enemies", for which Enemies.Enemy_type=2

    That means that every 5 seconds, Enemy2 will be spawned while Enemy1 will not be spawned. This is very useful for having influence on randomized spawns (in my game at last). I tried something like "If Enemy.Enemy_type=2 -> Create Object Enemies", but this doesn`t work, because every enemy can be created.

    Maybe someone has an idea on how to solve this? Thanks in advance!

    CreativeMind

  • Thanks, I`ll try using CocoonJS and see how it works!

  • Hello everyone,

    I`m new to C2 and I just encountered a few problems, so I guess it`s time for my first post!

    I`m using C2 on my laptop and I want to preview my project on my Samsung Galaxy S2 (Android-system). I already read the "How to preview on LAN"-article, but the problem is that the Galaxy S2 doesn`t support any LAN-connections to computers. As I have read in other forums, the Galaxy S2 doesn`t support Wi-Fi-connections to other devices than phones, either. So the only way would be to export the project to android and run it on the smartphone.

    I proceeded according to the article "How to export to Android with Crosswalk", so I installed XDK, build the app and downloaded it to my smartphone. When I try to run the app, it says "Parsing error". As I have only little knowledge of coding etc., I have no idea what that means.

    Maybe someone has a clue about how to make the app run on my android-smartphone? Do I need a different browser than the default one in order to run it?

    Thanks in advance!

    Creative Mind