lionz's Recent Forum Activity

  • Not sure why that is happening as obstacle should act as kind of a high wall and not block all other LOS but maybe with the file it could be worked out. Maybe it's something to do with the picking of multiple enemies which is usually a problem.

    You could make use of the cone of view so if you set it to 45 degrees it is kind of a small cone and in front of them. Another way is to say that if the player Y is greater than enemy Y then they never get LOS. You only need to add the obstacle once to set it, not every tick. Obstacle set as invisible doesn't make a difference, it will still work.

  • Usually an artist would do this for me, but you ensure the sprites are the size you want in the game so maybe 16x16 and ensure they are lined up correctly. You then use the tilemap editor in construct to paint the tiles in game.

  • Not sure why you used family to begin with? Player is the only object in the family, you can use player collides with player.

  • Every time you score or make a shot you run logic and set a variable to choose(1,0) where if 1 is chosen then it spawns a coin and if 0 is chosen then it doesn't. So this is like a 50/50 chance. If you want to make it rare you can use choose (1,0,0,0) where it has 25% chance to spawn a coin etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could give each icon an instance variable to identify, so numbered 1,2,3,4,5

    Have each player as a global variable, and assign them this number on selected.

    So if player 1 picks 3 then P1=3, if player 2 picks 2 then P2=2

    Then you can compare what P1 and P2 are and make them invisible. When you reset you set P1 and P2 to 0 and therefore icons reset.

  • In the manual for mobile advert it tells you how to add them with tutorial. You can view them on debug apk but not in preview.

  • Should just be the one that is clicked, lets see a screenshot of your events and structure.

  • Add 'for each enemy' condition, but you may need more advanced logic depending on what is happening.

  • Why not add adverts using Construct 3?

  • If touch.y is less than a value, so whatever the middle of the screen is, then have the player move towards touch but override the Y by setting player Y to a specific value.

  • I just meant that you check if enemy is not overlapping anything and do the move, and the following check about enemy is overlapping and choose a direction happens all within the same move and it's too fast. So it moves the enemy down one space, then checks if overlapping and alters the direction, this always results in choosing the last condition where it chooses left or right because it's not detecting overlaps correctly.

    So what I did was allow the enemy to move on the is not overlapping check, then add a small wait, then call a function. The wait is because you are setting a position and there is no condition like 'has moved'. The separate function called has all of the 'is overlapping' checks to then determine if the enemy is now overlapping anything once landed.

    FYI if you edit a post I don't get notified of anything.

  • If one object is pinned you don't need to simulate the movement of both. For the animations you can set some kind of state for the player when you press attack key, then you use this to block out the movement animations. So when moving and 'not attacking' > play move animation. When 'attacking' play attack animation.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 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