lionz's Forum Posts

  • No problem with using pathfinding and LOS, I am referring to using LOS and a distance check. Maybe by distance you meant when they are out of range of LOS so it's the same thing? Then yes it should work, you can say when enemy does not have LOS of the player, Stop pathfinding. Feel free to post a screenshot of those events.

  • how did you create the rooms ? :)

  • Depends how you generate the rooms. If at the point of generating the room you can designate it a boss room then there you go. Maybe the way you generated them does not allow you to easily 'pick rooms'.

  • There could be a better way but my approach would be to try PositionToTile where it would convert the player's position X,Y to a specific tile position, with which you can grab the TileID using 'Compare tile at' position. This should in theory give the ID of the current tile that the player is overlapping and then you can say for example if ID=1 play audio1, give it a go I kind of want to try it myself but too lazy to set up a tilemap :)

  • So the enemy is finding path in two different events ? If enemy and player are within a certain distance find path and also if the enemy has line of sight then find path. So you are saying that in your game if the enemy is a certain distance from the player but does not have line of sight, it will still move towards the player? I mean the design seems kind of convoluted, why not just use one or the other instead of both ? Your title refers to 'losing sight' only so maybe sticking with LOS is the better way.

  • Are you sure you released it in your own country? :D I would give it some time though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How does the design of the game work exactly? Do you mean you click an enemy and it becomes a target and will remain targeted until you click another ? Do you mean you click an enemy once to deal damage but you are having a problem with overlapping enemies ? It's difficult to click more than one at the same time.

  • From my side I would design the game so it's impossible to get stuck, so the path is always ahead of the player. Getting stuck I would consider a bug more than trying to work out how to fix it if it happens to a player during the game.

  • Tick 'Rotate object' on the pathfinding behaviour then it will face where it is going i.e. towards the player

  • You can reply. The warning doesn't stop you from replying.

  • That's good, you will need these kind of investigative debugging skills when building a game :)

  • every random(3,7) seconds

  • So he can fly to the left and right? Can you give more info on the genre of game?

  • If you mean random predetermined pairs then you can store them in an array where first column is the pair like TK, and second column is the answer. To pick at random you can use random(x) to choose a random row number of the array where x is the number of rows. When TK is chosen for example you can compare the text input in the textbox against the answer in column 2, if I understood the game correctly.

  • You will need to make use of tags, and one way to do it is to say 'enemy on created' 'play audio at object enemy' using tag ""&enemy.UID, this will give it a unique name related to the enemy. Then you can also say 'enemy on destroyed' stop tag "&enemy.UID