kirby's Forum Posts

  • I have a family of 8 players, each using one key for the game. There's a family variable keycode, and I save the keycode on it.

    However, I want to issue actions for the keycode is_down/release, and I'm wondering if I can do it with the family (instead of making 8 repeated actions for all the players).

    I did this to allow for the down to be detected, and it appears to work fine:

    keyboard: on any key pressed

    keyboard: keycode keyboard.lastkeycode is down

    system: pick players by evaluating players.keycode = keyboard.lastkeycode

    Then performing the required actions (I would get to them with "keyboard: keycode player1.keycode is down" if I wasn't doing this, but would have to repeat for all the players.

    Is there a way to detect the release of the key with the family?

    Also, am I doing it right for the down event or is there a better way?

    Thank you very much in advance!

  • Do you have any technical information as what is not loading (from a visual studio perspective)? Or how should I report that to them?

  • I went on Construct 2 hiatus since last September, and just today I downloaded the last version to try an idea... what was my surprise when after installing it crashed.

    I opened it again and it apparently worked well, I also noticed the UI theme change (from r148, apparently). I ignored it and started a new project, then saw this:

    i.imgur.com/jCXNaX1.png

    No big deal, a broken theme... I changed it to basic...

    i.imgur.com/Gxry2jf.png

    After a little struggle finding the button again, I changed it to scenic, everything seemed to work fine, until I tried to create a new sprite:

    i.imgur.com/troky44.png

    As soon as I use the brush, it crashes. As I edit my images in an external application I tried opening one, but it just doesn't show. The square remains its size and transparent and sometimes C2 crashes.

    I have tried using r158-2, r155, r152n and r148. Also, r146 works flawlessly.

    Oh, and it's not my display driver, I have one installed last month, however I tried rolling back to the one I had last September and even to the one I got with my motherboard (from like 1 year ago).

    i.imgur.com/8IJwCfU.png

    I was even about to format, after I saw it works on my sister laptop... but now I think it's fixable, I just need to update something from microsoft visual (I just don't know what). Any ideas?

    PS: I can't believe I'm the only case of this, I must be hexed!

    PS2: I just remembered... every time I install it and open it for the first time, it crashes.

    Edit: Apparently I deleted the paragraph with my specs, here they are:

    OS: Windows 7 SP1, 64 bits

    Video card: AMD Radeon HD 7560D

  • the only way Ive found to make sure Im always using the version I just uploaded is not to upload the offline cache at all. I had the same problem til I just deleted it from the webserver and stopped uploading it

    I've been having this problem for days, and I can confirm that this solved it!

    I wonder if this is a chrome or construct bug (but seeing how old is this post...)

  • I'm using fre:ac without any complaint

    sourceforge.net/projects/bonkenc/files/latest/download

  • I can't upload either.

    "Zip contains file extensions not on the whitelist"

    I double checked families, and the whitelist, but nothing... I suppose I should email the game, because Tom must be asleep now...

  • If I'm using XP and Construc 2 doesn't convert my files to AAC, can I convert them myself? and if I can, in what format do I need to save them? and where should I add them?

    Thanks in advance!

  • I'm sorting the highscore table, I suppose it will go like this:

    for i=9 to 1:
      if a[i][0] > a[i-1][0]:
        temp[0] = a[i-1][0]
        temp[1] = a[i-1][1]
        temp[2] = a[i-1][2]
        a[i-1][0] = a[i][0]
        a[i-1][1] = a[i][1]
        a[i-1][2] = a[i][2]
        a[i][0] = temp[0]
        a[i][1] = temp[1]
        a[i][2] = temp[2]
    

    I'm going to try it now...

  • Because of construct using bitmaps, I think you will have to do the effect yourself in a frame by frame animation, but the sad part is, if you're using construct's text it won't flip.

  • I know it's the slowest, but it's also the simplest and my array size is 10, so it wouldn't be unnoticeable.

    I'm not going to try to implement quick sort for a 10 value array LOL.

    As how I would implement it, I was going to use a temporary array, but it will be a mess and I want to avoid it ;__;

  • I can't use javascript inside construct and I suppose I can't submit to the arcade if I modify the javascript...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a 2d Array (matrix) of 10x3. I want to order each row of that array, given the index column (which would be 0).

    For example if I have:

    3, name2, 4

    1, name1, 2

    2, name3, 1

    I want it to be:

    1, name1, 2

    2, name3, 1

    3, name2, 4

    I was going to try a bubble sort, but I suppose there should be a better method (specially since javascript has a sort() function...)

  • That must mean I can sleep tonight. Yay!

  • My bad, I should have said that the number of shoots could vary and I'm shooting them from different image points, so that's why I was trying to use a loop...

    Anyway, checking for the points worked as Ashley said, so thank you very much!

    Can you explain me why the wait inside the loop freezes the game?

  • Trying to shoot multiple shots with one press of the button, spaced.

    I have another action that doesn't let me 'shot' more than once per second, so let's say I press the button two seconds in a row, I would want, at these times:

    0.0 shot 1

    0.1 shot 2

    0.2 shot 3

    1.0 shot 1

    1.1 shot 2

    1.2 shot 3