lionz's Forum Posts

  • This is just a statement, what problem are you having? Please add more info.

  • Ok so it was the mirroring

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The gun is set to not mirrored in both cases, that is intentional ?

  • I would start with the pick enemy logic, so whatever enemy is picked you can have its UID set as a variable on the support char so you know which enemy is connected (support.var). You didn't mention how it is picked but for example if it is the nearest enemy to player you can do that, pick enemy nearest to player and set support.var to enemy.UID

    Then this helps solve the facing issue, you say pick enemy where UID = support.var, if support X is less or greater than the enemy then mirror the support char accordingly.

    For shooting depending on how simple it is, if its just left or right then you can fire bullets and set the angle based on if the support char is mirrored or not, either 180 or 0. If it is more complex angle of shooting then you can just pick the enemy by UID support.var again and set the bullet angle towards the enemy.

    The support char would then stay mirrored or not based on the enemy X so you are free to move the support char in terms of following the player how you wish.

  • it's interesting! I had no idea what's happening but I guess that's part of the game.

  • Which behaviours did you try ? Do you have a screenshot of the events ? though you should not need any to move the character.

  • So we don't need for each block, in fact I don't think we need to pick block at all since we are only dealing with the array. I don't think we need a second array either so you can drop that. The comparison on the left looks good so then for the action you need to change them to empty I guess? and then destroy the blocks that match the array co-ords.

  • I would try what you described in the original post checking x-1 and x+1 for a matching type that's why I wanted to see what you tried and isn't working. Also try testing it with delays so you know everything is working as it should. Also rather than a for each block, a for each ordered by something may work better for tracking which block is being checked. Did you check that the array looks correct and as expected btw?

  • > It's interesting that you shared a screenshot of the part that works and not of the function that doesn't work.

    The function doesn't work, and has nothing because I'm not sure if I should us a function. Thanks for the reply though.

    If the function has nothing in it then can confirm this is why it's not working :P

  • It's interesting that you shared a screenshot of the part that works and not of the function that doesn't work.

  • You do not have permission to view this post

  • You posted this in the wrong forum, also check out this guide on the best way to get help from the forums

    construct.net/en/forum/construct-3/how-do-i-8/best-help-tips-forum-139528

  • System > compare two values > global variable counter is greater than global variable max > action : set global variable counter to 0 (or min)

  • Have you tried removing the add on? Another thing you could try is opening it in the previous stable release 432.2 see if it has the bug.

  • depends on the condition you used. If it was something like bullet on collision with Enemies(family) then it should pick one instance so your condition must be picking them all somehow.