Mipey's Forum Posts

  • You only need one global mouse&keyboard, just put it onto the first layout and you're set for the rest of game.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And a picture of the Borg.

  • Indeed, I have a couple global objects on the first layout and I can access them anywhere.

  • We are really trying to expand the reach of GMArcade to encompass more programs...but last contest we only received Game Maker Entries

    I know your feeling!

  • Paddle: Set X to 100 (fixed position)

    Paddle: Set Y to MouseY

    However, if you want it to move left and right, reverse the X and Y. Y should be fixed (say, at 460 if you are using 640x480 resolution), while X should refer to MouseX.

  • Which layer are they on? Might want to create them on the initial layer. If the new layout doesn't have the extra layer, then it might not pick the global objects up... just a hunch.

  • Unfortunately it seems that you have stumbled upon a bug with Array - Compare value at X,Y,Z.

    Use Array - Compare value at X,Y or X instead. Also, as shown in the example I uploaded in your upload thread, "For each element" Array condition removes the need for the loops.

  • Contra!

    I've attached an example that uses the 'for each element' Array condition. In order to output a certain index only (the first Z layer), add a condition that compares the Array.CurrentZ to the index you want. Remove that condition and it'll display the whole table.

    It seems that Array object is still 0-indexed... Is this intended? I was under the impression that this was changed to 1-indexed.

    - [CHANGE] Array is now 1 based; if you use Array in a project please review and update your events accordingly

    This obviously isn't true in our case.

    Also, your example should work, but it apparently doesn't, which should be considered a bug. The 'for (n)" aren't at fault here, it is the Array condition that is not doing its job. The Array - Compare value at X,Y,Z appears bugged, you could use the X,Y or X variants instead. I will report this to the tracker.

    So, in your case, it would be:

    +Trigger Once
    +For "x" from 0 to 99
    +For "y" from 0 to 99
    +Array - Value at LoopIndex("x"),LoopIndex("y") equal to 0
    

    List: Add "Yes"

    [/code:2tpotvn2]

    But that is redundant, since "for each element" array condition does the job just fine as shown in my example.

    Also, use "Trigger Once" system condition so the event should evaluate once only; by itself it will keep triggering each tick.

  • displaymouseXY? Because display refers to the game window.

  • No, it doesn't include the 4. It is really a number from the array of {0,1,2,3}.

    So a random(4) will return a whole number between 0 and 4, including the 0 and not including 4. Confusing, I know, but you get used to it.

  • I can open it fine. Which version are you using? If 0.98.9, that has been reverted back.

  • If you are using the Array object, couldn't you use the "for each element" condition?

  • You know, it would be a good idea to create language forum sections... Russian, spanish, dutch etc., whatever is prevalent in the community.

  • , but it is not an official release. You might want to wait for the official release.

  • That depends on which version you have. The 0.98.8 on General forum has sortable object bars and such.