Kyatric's Forum Posts

  • Go in the layers tab, on change the order of the layers (select a layer and then click either the up or down arrow).

  • I don't know if it is just for learning or if you need it, but alert is already implemented in the browser object.

    So if you need it, insert a browser object to your project. And if it is for learning, you can check the sources in c2\exporters\HTML5\plugins\browser.

    EDIT: : Also be sure to check the SDK it links to good JS ressources.

  • Set a condition Player.On collision with an object Button then right click on the condition itself (it should make the condition alone highlighted with a yellow frame) and select "Invert" in the contextual menu.

    This means "Player is NOT colliding with Button".

    This issue has been covered several times in the forum, be sure to make a "search" before posting.

  • So concerning the problem, I can't open the capx, even after having installed the plugin version from Joe7's topic.

    Have you updated the plugin you are using or could it be some old version, that would explain the incompatibility ?

    An array could help somehow. Two dimensions.

    Talking from your picture,

    x: 0, y:0, value null

    x: 1, y:0, value 6

    x: 2, y:0, value 3

    x: 3, y:0, value 9

    Etc... all the way to

    x: 0, y:3, value 16

    x: 1, y:3, value 5

    x: 2, y:3, value 14

    x: 3, y:3, value 11

    Set a variable VC = 0

    Set a variable 2Comp = 0

    For each Tiles, store tile.index (or the name of the value they are displaying) to the correct X, Y in the array.

    Set VC to 1 and run two loops (one for Y and the other for X).

    Check that the value of array.at(X,Y) matches 2Comp and increment it each step. (the value of 2Comp would then be 0, then 1, 2 etc...)

    Making a while loop in events if you want. As long as the values match, you do nothing.

    The moment the comparison is false, you could set VC to 0.

    After the looping is done, check VC. If it is 1, then you have ordered all the tiles as expected.

    If it's 0, victory is not there.

    You could facilitate things by keeping the X and Y of our virtual grid as instance variable of the tiles. It will make it easy/quicker to store the values in the array.

    That's an implementation I guess.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • JohnJ: you might want to check out this tutorial treating the differences between C2 and CC as well as documentation to check out for the one, the other or even both.

  • Player (platform behavior) and Physic (world objects) - LINK from the How do I FAQ.

  • With the Touch object, condition "On touch end".

  • Updated, thanks for the notice.

  • Have you checked this tutorial ?

    I haven't messed with resolutions yet but I'm pretty sure all the answers lie here.

    At least, the part about HUD is covered.

  • Those stuff have already been "suggested" and dismissed.

    Multiple collisions ? Use several invisible sprites, pin them on your "main" sprite and here you go, multiple hitbox.

    Making objects on other layouts ? Use the global property of objects and remember that a layout is created only when the action "go to layout" is met. And remember that objects are destroyed when a layout is "closed" (going from layout1 to layout2, objects fom layout1 that don't have the global property on are destroyed, objects supposed to be in layout2 are created).

    If you need to create objects on layout2, spawn them in the event "On start of layout".

    If you need subtlety and dependece on your first layout, use global variables.

    If an action has been done in layout1 you can set a global variable to a certain value.

    On startup of layout2, test the global variable, the value is such as expected ? Spawn object.

    Here you go.

    Suggestions are good, learning to use C2 and what it allows as it is right now is better.

  • jumprock : the plugins and behaviors have their own forum (under "your creations").

    The SDK is the thir stickied topic of "Construct2 general" forum.

  • This topic about the subject.

    Use power of two textures.

  • Have you modified the example in any way and saved over it ?

    Try downloading this version (this is the one on my computer) and test if it works better.

  • Move the action "Set SwingDown to 1" from Event15 to Event7 and 8.