salehkindy's Recent Forum Activity

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

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

  • You can round the number every time you add 0.01

    Set var to (round(var*100)+1)/100

    Please can you look at these photos? This started at 214 second.

  • Thank you very much. I will try this.

  • I have been working on a game where you need to go through levels and defeat enemies in the shortest time possible. I created a variable that increases by 0.01 every 0.01 seconds to show your time spent in that run in seconds, but the problem is that after about 200 seconds the variable will look like this 200.99999999999 which is a problem because I want to show more than just seconds. I have seen Construct 3 do the same with small numbers before, but I can't remember the details. Can anyone please tell me if there is a solution to this issue?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
salehkindy's avatar

salehkindy

Member since 9 Aug, 2020

Twitter
salehkindy has 2 followers

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies