Bl4ckSh33p's Forum Posts

  • Hi! I tested my game on PC, iOS 6, iOS 7 and Android 4.4 and I noticed a problem on the android tablet. When a object is created at an image point it sometimes appears half off screen or outside the image and not at the image points. Did anyone else notice something like this? It did not happen on PC or the iOS devices so far.

    Here is the code I used:

    <img src="http://img5.fotos-hochladen.net/uploads/spawnbugandroidyv2fnpqs86.jpg" border="0" />

  • Hi! I built a game and compiled it with CocoonJS and installed the debug/signed .apk on my android device. But when I click on a button which has the following actions, the GoTo is not fired:

    On Touch

    > Play Sound

    > Wait 2 sec (so the sound can be heared, first time works without wait on pc but second time on the layout the sound was cut off)

    > GoTo Layout (GAME)

    But it does not switch to the other layout. Is this a bug?

  • Hi! I used the Open URL in new window action to open my website from within the app and it works fine on PC but when I try it on iOS devices it seems to do nothing. Is there any workaround for this?

  • But you dont need a 99$ Apple Dev account if it runs as "browser app". Thats why I only use Cocoon for Android so far. :(

  • I tried it again and it worked this time following this tutorial: scirra.com/tutorials/432/android-games-with-cocoonjs

    But it would be nice if you could just enter the command anywhere. Does this work with the env. variables somehow?

  • Hi! I downloaded JDK today and tried to use the keytool. When I run it from the JDK folder it says it can't find the specified c:\android\xxxx.keystore and when I enter the "keytool" command in command line (like descriped in CocoonJS guide) it says its an unknown command. I tried setting the JAVA_HOME environmental variable but this did not seem to work either (for user and global).

    Any tips how to make this work?

  • I noticed that you hear the sound file playing the first time without wait, but every other time you click on the sprite the sound is not played until you switch browser tabs and get focus back to the game.

  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/26714455/ChromePopup.capx

    Steps to reproduce:

    <img src="http://img5.fotos-hochladen.net/uploads/browserpopupbugoce43wfqy9.jpg" border="0" />

    Observed result:

    I have just tried to add a "Wait" before opening a link in a new browser window and noticed that Chrome opens a popupwindow without buttons (only url bar) when a Wait command is executed right before it.

    When I disable the Wait command it opens a normal browser window as expected.

    Expected result:

    Open a new browser window with all buttons, not just a small popup without default browser bars.

    Browsers affected:

    Chrome: yes

    Firefox: no

    Internet Explorer: no

    Operating system & service pack:

    Windows 7 SP1 64 Bit

    Construct 2 version:

    r154

  • Thank you very much to both of you!

    It seems the "For each" loop fixed the left over entries in the array. :)

    <img src="http://img5.fotos-hochladen.net/uploads/spawningfixed2xzq63vey5l.jpg" border="0" />

    And I modified your example a little bit and it works fine so far. Thanks for taking the time to create this!

    <img src="http://img5.fotos-hochladen.net/uploads/spawningfixed1p70feicvrs.jpg" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, I will try it with a "for each".

    I try to figure out another way to handle the check if a spawnpoint is already occupied. But so far it seemed to work.

  • Hi. Seems you were right. I hade multiple baubles on the layout and one of them was counted as missed right at the beginning. I added a Destroy command on Startup and it seems to have fixed it. No 1/10 missed at the beginning. <img src="smileys/smiley1.gif" border="0" align="middle" />

    <img src="http://img5.fotos-hochladen.net/uploads/missedbaublecouixdfenbhpw.jpg" border="0" />

  • Hi! I am working on a game right now and spawn "baubles". I used an Array to check if a spawnpoint is already occupied to prevent overlapping of baubles. First it seems to work fine and the array saves the data where baubles spawned and the array entries are set back to 0 when an bauble despawns or gets destryed by a touch. But when it runs for a while (normal speed or with increased speed in debgger) some values in the array stay at 1 and are not re-set.

    This is my very first time I used an array, maybe I made a mistake somewhere? Can an experienced user take a look at the following code to see if I did something wrong, please?

    Spawning (checks array if spawnpoint is empty or get a new one if already occupied):

    <img src="http://img5.fotos-hochladen.net/uploads/baublespawnarra7vnw03z4gq.jpg" border="0" />

    (Note: only problem I see right now is the while loop, if all array entries are 1 it creates an endless loop - still thinking about a solution but it "should" never happen because baubles despawn after a few seconds)

    Destroyin (resetting array value, same for despawning when lifetime reaches zero):

    <img src="http://img5.fotos-hochladen.net/uploads/baublespawnarrazodc81psrv.jpg" border="0" />

    After letting it run for a whil this is shown in the debugger:

    <img src="http://img5.fotos-hochladen.net/uploads/arrayonespawne7s2gkh4yip.jpg" border="0" />

    4 slots are occupied (entries with 1) but only 1 bauble is spawned right now.

    Thanks in advance!

  • Thank you very much to both of you.

    It's too late to test it now but I think you might be right about the additional objects. I have a few baubles placed on the outside (need to have them there to spawn them?) and forgot to add a "Destroy on Startup" command (which I learned a few weeks ago but totally forgot about). I will take a closer look at the debugger and try to incorporate your suggestions. Writing down the logic of what you want to do is a very good idea. I will try it again tomorrow.

    Thanks for the detailed advices! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hi! I'm still trying to fix this and hope I can try a few other things this weekend.

    Or does anyone else have an idea how to fix this? Any help would be very much appreciated.

  • How can you disable Groups? Last time I looked there was only an activate Group command. Did I miss it? <img src="smileys/smiley3.gif" border="0" align="middle" />