gumshoe2029's Forum Posts

  • Use "instance variables" on those sprites, then you can add, subtract, etc on those variables of any given sprite instance.

  • Please do gumshoe2029 otherwise it won't popup on my little notification thing.

  • Capx?

    Elaborate.

    Now, set position is working, but the player is still underneath the layer.

    Oops, sorry, I forgot not everyone uses the Windows extensions visible options.

    Yea, like AllanR says, there are Z-layers within each layer and that arranges sprites within a layer, so moving to top of layer should work too, but moving sprites between layers automatically puts them on top the Z-layer of the target layer.

  • I use rex_board and rex_squareTx then just do on Mouse is over grid tile, set object position to squareTx(x,y).

  • I had the same need and ended up customizing rex's date plugin.

    https://drive.google.com/file/d/0B-xiqK ... sp=sharing

    The function is "FormatTimer" and it takes in milliseconds as an input.

    There are other time formatters in there if you need a clock timer, instead of a countdown timer (which is what FormatTimer is for).

  • The nature of a browser-based game means that there is nothing that you can do to protect your images/JavaScript code from being stolen.

    Scirra takes great pains to obfuscate the runtime.js file, but ultimately, it is not possible to do what you are asking in Construct(or any browser-based application for that matter).

  • Yea, you can import event sheets into the official one tied to a given layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should track where the magnet is and say

    if Magnet.X is between Point A and Point B

    AND

    if Magnet.Y is between Point C and Point D

    then

    Facility Pin to Magnet (using the Behavior, Pin).

    Where Point A, B, C, and D are near the Facility object.

  • Maybe try using a Player: Move to top of layer (z-layer). Although changing layers does that inherently...

    Try building a capx to text exactly your issue. If you can rebuild it, it will give you insights into the mechanics at work behind the scenes. This general practice has helped me fix many bugs in my game (in fact, I have an entire folder filled with test capx files).

  • I don't know that this is possible in native C2, but you can probably write a plugin for it using the SDK or maybe even try using eval('xxxx') in the "Browser: Execute JavaScript" event.

  • Solid alone is not enough, you have to use another behavior (I forget which one, but it is in the "Solid" description, I believe).

    https://www.scirra.com/manual/104/solid -- looks like it is 8-direction or platform. So add 8-direction or platform to all of your objects too.

  • Let me make sure that I understand you correctly:

    Questions: [question0, question1, question2, ... ]

    Incorrect answers: [ic0, ic1, ic2, ic3, ... ] <--- Are these question IDs or answerIds?

    Are you transferring all of the incorrect answers at once, or one at a time?

    I think you might be better of transferring them one at a time, while the user is taking the test.

    Something like:

    if answerChosen is incorrect

    --- questionArray: Remove questionIndex

    --- incorrectArray: Push (at end) questionIndex

  • Use rex_board and rex_squareTx plugins, then set the "squareTx" to isometric mode.

  • You can use two-dimensional arrays to track the locations of the all of the snake's body parts, saying you have a part at {1,1} and another part at {1,2} and the next part at {1,3} and a tail at {2,3}.

    So you would just fill your two-dimensional array with 1s and 0s; 1 meaning snake body, 0 meaning no snake body.

    Like this: