lionz's Recent Forum Activity

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

  • Ok so it was the mirroring

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 75 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies