lionz's Forum Posts

  • That logic isn't going to work because in one instance you use 0,loopindex then you use loopindex,0. I would start small and try and pick out the array elements first so you know it is logging the right things. An example of the array in debug view would help, not the array file. The rows/columns matter here, I think you've imported it in an opposite way to what I usually do where the objects are rows (X) and the stats are columns (Y), and you have it where the objects are columns (Y), you just need to make sure the array.at actions are in the correct format.

  • In Construct we use picking with conditions (on the left of the event sheet). A common one is 'player on collision with box', this will pick only the one the player collides with, for example, and apply actions (on the right of the event sheet) only to that instance of box.

  • When you create the family object "SpaceMap" it doesn't automatically know which object, you need to create the specific object by name. You store the name of the object in the array but then try and create the family instead. You can create array.at(loopindex,0) or however the values are stored in the array by row/column.

    Pick last created Family can still be used but may not work in the same tick and loop. It may need to be triggered elsewhere but you can test this.

    The array deletion row you don't need to cycle through the array again as you are already at a row in the array and can delete the current row 'loopindex'. The problem with this however is that rows will move up and some objects will be skipped, to resolve this sometimes you can run reverse through the array from bottom to top.

    I saw you create a probability table but don't use it?

  • Telyko what do you need help with? A new post is better as someone is always around to help anyway

  • In general I'm not sure what the design of the game is but it will keep spawning the grains constantly if the variable is 1 so make sure it's the value you expect

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • Is the behaviour 'run constantly while it is overlapping' or more like an on hit one time behaviour. It sounds like you've used trigger once so instead you can try 'player on collision with instance'. That should work well enough for a one time hit and you can print the instance UID in the action when the collision takes place.

  • Yes nice, exactly this

  • You just need to put it in the same block you had before, then with the action add set variable to 0.

  • Although they seem like separate events, because you change the variable 1 to a 3, it makes the event below true in time to run it because they all trigger on key press in order from top to bottom. You can try just having the one key press condition then use sub events with 'Else var=1, Else var=3'.

  • You can use a different global variable to lock out the event so it is not always true. So like variable=0 in the condition, then when you show the text in the action you can set the variable to 1. Then it will only run one time!

  • You need to make it so the condition is no longer true, so change the Levels_Open variable? Or if that is an important variable to remain with its current value then use a different variable to act as a trigger once.

  • In theory what you are describing should work but the screenshots are too limited to tell what's going on. If you can share the project I can help. Or try with a very basic event and see if you can get it working to change the volume with a tag.

  • Which add layer event?

  • You do not have permission to view this post