salehkindy's Forum Posts

  • Thank you very much. I do have an event that sets it to false. I will make an event that checks if the movement buttons are held.

  • I have a boolean with the name "Moving" and I want it to be true when the player's Car behavior or Custom behavior makes the player move using the Is moving event. However, the player's Custom behavior's Is moving event is always set to true.

    Using those behaviors is necessary. Is it possible to do this? If not, is there another way to set a boolean to true when the player is moving?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Here is an example showing pathfinding path on a grid. You can probably modify it to your needs - for example, instead of moving the whole path, only move to the first black dot and stop.

    https://www.dropbox.com/s/quou9f4k0d9vfca/PathfindingOnGrid.c3p?dl=0

    Thank you very much.

  • I want to make a turn-based game where the player and enemies move on a grid, and I want the enemies to pathfind towards the player, then stop after moving one space on the grid. I have tried to do this for over an hour with no success. Is this possible to do on Construct?

  • Thank you very much dop200. I don't know much about JSON and advanced random, but I'll try to do this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you win in a level, I want to show the player 3 random options of stat increases and items they can choose from, some rarer than others. I don't know much about arrays and I am have spent 3 hours trying to think of a way to do this.

    So for example it chooses from this

    30% Coins

    10 coins

    15 coins

    25 coins

    50% health

    +5 health

    +10 health

    20% attack increase

    +20 magic attack

    I think it is possible to use Arrays.At(random(_,_),random (_,)), but I want to display the options the player has.

    I also don't know how to add the amount chosen to the correct variable. For example, if I get 10 health, I can't just add it to a variable because "+10 health" would be a string (I think).

    Another problem is that I don't know how to add it to the correct variable because there are a lot of variables.

    Thank you for reading this. I would really appreciate it if you helped me.

  • You do not have permission to view this post

  • Thanks you again. I tried that and it now works normally.