Bl4ckSh33p's Recent Forum Activity

  • 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" />

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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" />

  • Hi! I have installed the latest beta via steam and tried to import files from a folder with the rightclick menu > "Auto-import all in folder". But it does not seem to do anything when I click on it.

    Is it broken or what does it do usually?

  • Very nice and useful. <img src="smileys/smiley20.gif" border="0" align="middle" />

  • Right! It works. Even without rounding and the many 00000's in the var according to the debugger, it displays only 1.x, 2.x and so on.

    Thank you very much to everyone who took the time to read and reply. <img src="smileys/smiley1.gif" border="0" align="middle" />

    Now I only have to fix this problem with selecting and deleting family members. (http://www.scirra.com/forum/topic82615.html)

Bl4ckSh33p's avatar

Bl4ckSh33p

Early Adopter

Member since 20 Jul, 2013

Twitter
Bl4ckSh33p has 5 followers

Connect with Bl4ckSh33p

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x7
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Lightning Draw First person to up-vote a new Construct 3 release
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies