lionz's Forum Posts

  • I'm not sure what you've done but a global variable should keep its value between levels by default.

  • Check export options and then if not it could be as I said something on itch.io side. I think mouse cursor change doesn't work over html elements if i remember correctly so it makes sense if it thinks you are off screen or outside the layout.

  • It sounds like a difficult one to work out if it is working fine in Construct and only breaks when you upload it. Maybe it's an issue with the place where you uploaded it.

  • Not sure about the glitch. You could try setting it one time on start of layout instead of every tick.

  • For this I find it's better to drop the system conditions and use a Timer behaviour. You start the Timer on 'attacking' and then 'on timer finished' you have some actions for the enemy. This helps them work more independently and you can track it.

  • If you are 'evaluating the tech' for a mobile game on android the real question is where do you plan to put the android game if not on Play Store ? What are the other options ?

  • I'm not sure why you used it, did you want to wait 0.1 seconds for some delay before showing the screen to the player and playing the sound? Quite a small delay but if you need it the wait should go above the play sound action not at the top level. Also if you had put it all in one block without indenting trigger once and action into the sub event it would've worked as intended. Adding the wait as you did is not a normal structure for Construct events, what you are effectively doing is 'waiting to get to the trigger once'

  • It's because of the wait, remove it

  • You don't need the pick random instance btw, the death animation condition is fine. Maybe it's because of how you are using the health pack variable to determine spawning of another health pack. Change the spawnchance thing to a global variable and use this instead.

  • Check in debug preview to see the number of instances and if they are spawning. Also to note If you didn't set positions or anything then each object will spawn on top of each other. If you mean none of the objects are spawning then check the layer you are spawning them, but start with debugger and you can see if they actually spawned.

  • Ah ok looks like maybe picking issue. If a skeleton dies, you need to spawn the item on a skeleton (the one you picked on death), not 'family enemy'.

    If you called the function on family enemy 'death animation finished', then using family enemy again in the function is fine and makes sense.

    The function also needs to have 'copy picked' enabled in its setting so that it keeps the picked instance between the original call and inside the function.

  • You didn't share where the function is being called. Use Browser log action to log the values, it will help you determine if they are as expected.

  • Oh you switched to using the array instead of system conditions now. Instead of loopindex you can use the array condition 'compare current value' of X.

  • Are the empty cells 0 or just empty. If empty you need to use "". Also you removed the stop loop action but you will need that or it will fill all empty cells with the variable instead of the first one found.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is no condition to check if it's empty. if array.at(loopindex) = "" or something like this