Tsardall's Recent Forum Activity

  • Solved: It was just the fault of the chromebook, in Windows you can just drag and drop the file into a Construct 3 tab and it will open like normal.

  • I was using a chromebook and save my project multiple time before, but now my project is a.zip and when I click on "open projects" construct 3 can't find the file since it's not .c3p

    Thank you.

  • So using an array would be the best way. Does this method also works with multiple colour expending? So the same situation but instead of only one red patch there would also be a blue and a yellow one.

    Also how do I do I define "valid locations" since the map will evolve the valiud locations will also change.

  • Exemple:

    So in this case, I need to pick a random tile (every few seconds) around the red tiles and change them to red. and this until there is no more place for red tiles to spread.

    Thank you

    Tagged:

  • How do I check adjacent tiles when one is clicked? Can I do mouse(x,y)+10 (and after) -10 and after convert it into tile position?

    But I dont need all the adjacent to be of the right tiles

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But I can't compare the position of the tiles since it could be any tiles, no specific values.

    So I can't replace "A" and "B" with numbers in:

    distance(Tilemap.TileToPositionX(Ax), Tilemap.TileToPositionY(Ay), Mouse.X, Mouse.y)<(32*1.5).

  • So I already made something similar but with sprites but couldn't figure out how to do it with tiles.

    In the image below when the button is active, the player can only paint the "tiles" that are directly adjacent to the blue "tiles".

    Is it possible to do the same with only a tilemap or will I also need other objects like an array?

    Thank you,

    Tagged:

  • I got this to work:

    It just change the tiles colour if the value of the array=0 at same tile position in the array using positiontotileX(mouse.x)&positiontotiley(mouse.y) And its bugged when condition on "every tick" it just colours a big square in the tilemap.

    But now I would need to do the contrary, set an array value when tile=0 (colour)

    And do I have to always rely on a specific position in this case (mouse.x,y) to change an array value? I would like to do like:at (tile.x,y) which i can’t figure out how.

    Also any tutorials online on how to use tilemaps with arrays? please

  • I can<t do all tiles manually, I would need to do something like this: Everywhere where there's a white tile, set the value of the array to 1. (at the same coodinate in the array for each)

    Is there a way to simply do: whatever the position if tile white set value of the array to 1 at the same position in the array?

    I tried to loop each tile to check if they are white but this just takes too much power, so I have to use specific coordinate like (mouse.x;mous.y) and convert it to tileposition which I won't be able to rely on later in my project.

  • Thanks a lot for the help, I understand It better now. 🙏

  • I tried doing something that would pick up the position of each tiles at start of the layout.(doing it manually would be way too long) but it doesnt work, only the "set size of the array" event works. I think there's something wrong with my loops too.

    I have never worked with arrays before and tilemaps so I am completly lost.

  • My tilemap is iregular its not a 100x100 (like the picture above), Also are there tutorial about using arrays with tilemaps, i haven<t found any and it owuld really help.

    Ok thank you a lot, I will try something again.

Tsardall's avatar

Tsardall

Member since 13 Jun, 2021

None one is following Tsardall yet!

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