PabloDev's Forum Posts

  • You do not have permission to view this post

  • Ok I solved it.

    I really solved it thanks to an error? of C2.

  • Hello, I am developing my online and local game 1 vs 1 in NWjs.

    The problem is that I have to do tests and I can not open two instances of NWjs.

    I could make it run in chrome and NWjs, then I would have the two players in local, but for that I will have to adapt my program to browser (currently it is only for NWjs).

    What I can do?.

    Should I adapt my program to browsers and thus be able to preview 2 players online on the same PC? (1 instance in chrome + 1 instance in NWjs)

  • I solved that problem, what compilation mode are you using?

    Manual mode with cordova ?.

  • I had not tried that to move the position window.

    Of course it is a solution but I preferred to occupy that empty space.

  • Yes, I thought that, but it's a bit heavy when you have many different objects, thanks anyway.

  • Do you have the configuration as in this gif?

    See how the editor's tabs change when I turn the mouse wheel over the layer window.

    Even if you select a layer and rotate the wheel, the rotation is directed to the editor's tabs, not to the layers window.

    imgur.com/Td8FNz3

  • You mean that the two triggers will be executed and the last one to do it is x 400.

    But this solves the problem.

    What does it mean then?

    imgur.com/sc71THv

  • Ok I already did it and it works, it looks different but it can be read correctly.

  • I have deleted the cookies but this error did not go away

    https://i.imgur.com/XbGnAHq.png[/img]

  • The images are now visible but some threads of the forum of C2 are inaccessible, for example the thread of "tips & tricsk for NWjs"

  • DESCRIPTION

    This also happens in C3

    When the space bar is pressed, the trigger contained in the "else" is executed even though the initial condition is true, this means that the "else" must never be executed.

    CAPX

    https://www.dropbox.com/s/01b0vlphzmlrl88/bugTrigger.capx?dl=0

    CAPX Description

    The capx only has one sprite, the keyboard plugin and two conditions.

    STEPS TO REPRODUCE

    Press the spacebar and check how the sprite is located in X 400, this means that the trigger contained in the "else" was executed

    EXPECTED RESULT

    Only the trigger should be executed in the initial condition, the trigger in the "else" should not be executed.

    SYSTEM OS

    Win10 64b

    C2 Version

    259 64bits

  • I understand the solution, thank you.

    But is it correct that this happens? Is there not a bug in this?

  • Hello, when I pulse space the sprite is set to X 400.

    Should not it be located in X 0?

    This is somewhat confusing.

    IMAGE

    https://imgur.com/LN3sXuJ

    CAPX

    https://www.dropbox.com/s/01b0vlphzmlrl88/bugTrigger.capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Description

    This also happens in the free version of C3

    If you save the state of an object that is being used in a layout with several layers, then you change to another layout with the same number and name in the layers and create the same object and restore its status with JSON.

    The layer is not restored, the object is positioned in layer 0, although you saved its state in JSON when the object was in layer 3.

    It only works in the same layout, if you change the layout the error occurs with the layers.

    CAPX

    https://www.dropbox.com/s/ln8f6a2gm17f5jm/bugJSON.capx?dl=0

    GIF in:

    https://imgur.com/a/WaNHupf

    Description CAPX

    A tilemap object saves its status automatically when it is in layout 0.

    After passing to layout 1, this layout has just the same layers as layout 0.

    The tilemap object restores its state with JSON but the layer is not restored correctly.

    The tilemap object is located in a layer that does not correspond to the one it had at the moment of saving its state.

    Steps to reproduce bug

    Simply observe how the object is not placed in its layer correctly when the number 1 layout is executed and it regains its state saved in JSON.

    Everything happens automatically.

    Operating system

    win10 64bits

    C2 version

    259 64