lionz's Forum Posts

  • 1. Because the units can be picked up anywhere on the object you can try setting the object to mouse in the same way that the X is set there

    2. You should be using 'is dragging' (inverted), you are using is drag n drop enabled which is for the behaviour in general and from what I can see this is always enabled, is dragging is for its use

  • No, the event sheet is running constantly. If you disabled the group then it remains disabled.

  • An event sheet is something that runs for any layouts it is linked to

  • You don't really move between or load event sheets, that's layouts. You want to activate or deactivate then you set them as such.

  • That is just how they work, if you want to retain the value then you can use a global variable as you mentioned

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Because every time you run the event with a local variable it resets to its default value 0

  • You put all the data into a spreadsheet file in the project and then with events you load the spreadsheet data into the array, using AJAX load from file.

  • Yes the array idea

  • If they are global they remain on every layout switch. If you mean create a new one every layout switch then you can take the logic from the red sheet for creating a barrier and add it to the other ones.

  • Not really sure how your game works but you have logic set up to create a new barrier only when you enter the red layout. If you run it in debug mode it does this, you can see it creates a new barrier and the barriers remain through each layout change because they are global. Beyond this I don't know how the game works :)

  • When you select the barrier objects, on the properties under the name there is a checkbox Global, you need to tick this.

  • If it is correctly set to global then it would not get destroyed when you leave a layout, it remains and you should see it. Check in debug view in case the object exists but is hidden. It could be an issue where the layers are different. Or if it is not working as expected you would have to share the file to debug it.

  • If you mean that you are going to another layout and returning and you want it to be there in the same place it was before, you can use something called Persist behaviour.

    If you mean staying in the same position and appearing in the next new layout you can give the object global properties, tick global on its settings, and it will remain in the same place and follow through to the next layout.

    What previous person is proposing is that you can store the co-ordinates of the object in an array or a variable and use these later to set the objects position but you will also need to create the object again when changing layout.

  • If you need that kind of constant tweaking help you may benefit from joining the discord discord.com/channels/116497549237551109/253490735268102144