lionz's Forum Posts

  • Doesnt that function just run once at start of layout? You want it to play sounds as they get answers correct then it should go in the drop logic.

  • I'm not seeing any logic that tries to play audio? Also better if you explain more about what's going on in the game.

  • Your current method will drive you crazy when you reach hundreds of layouts. I would do it by adding all choices into an array with IDs, the IDs relate to a row of the array that you would use to update the choices to when you choose something.

  • You do not have permission to view this post

  • I would make sure the layout is bigger than the viewport so it is able to scroll. After this you can check the parallax or scroll rate of the layer that the player exists on, if this is set to 0 then it won't scroll. Other than that, you'd have to share the project file.

  • To lock out all instances you can take a more general approach, so when you click on the object, set a global variable to 1. When the editing bit has finished, set the global variable to 0. Then on the initial click object logic add a condition that the global variable must be 0. The change to 1 locks out any more clicks.

  • This is an inventory, right? You can use an array to create an inventory and add items. When you go to the backpack layout you display the items in the array.

  • Merry Christmas to all, enjoy your day! :)

  • You can give the sprite an instance variable which is the co-ordinate of the array and it can link in that way.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That is just how they work, if you want to retain the value then you can use a global variable as you mentioned

  • Because every time you run the event with a local variable it resets to its default value 0