TheWindmiller's Forum Posts

  • My hat goes off to you sir, to both you for the response. This is exactly what I needed. Still new but you guys are awesome. Thanks again!

  • dropbox.com/s/sit25qtanz28tiu/TileTest.capx

    I made a quick test project. I want to do the following:

    On Layout Start, I want to Create the IsLand sprite object on all the Black tiles and the IsWater on all the blue tiles. Just these two tiles in the entire tilemap for this particular example, although won't be the case in the larger project.

    I would immensely appriciate any help on how i can actually do that.

    Very thanks in advance!

    Cheers!

  • At work currently - been browsing through the forum and can't find an explanation that I understand on the subject. I'll upload and example later on though, thanks!

    P.S....my curiosity is killing me though, how will I go about doing that?

  • Hey, thanks for fast responce.

    The thing is, as I understand it, every tile in the Tile Map has an ID...for example I have a tilemap object with only 2 tiles to pick from, one Black (Tile ID 0) and one Blue (Tile ID 1). I paint the whole object in black tiles and just paint a river with the blue tiles. I want to run an event, that upon loading the layout Picks all the Black tiles painted, and places an object of choosing upon it - not important, and then picks all the blue tiles painted and places a another object on all of them, something like:

    Conditions: On start - Pick All Black Tiles

    Actions: Create Object on X.Y of Black Tile (Tile ID 0 or somthing of the sort)... can I do that in anyway?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can I, for example have a tile map with black tiles and blue tiles, can I detect all my placed black tiles (same Tile ID) and place a specific object on all of them, and place another such on all blue tiles.

    Thanks in advance, and sorry if its been discussed I just can't find this specific scenario wich eludes me so far.

    Cheers!

    P.S. Place an object on Load Layout for example, by placin something on the X, Y coordinates of each and every tile of the picked sort (for example, black)

  • Hey, thanks a million!

  • Hey Thanks....erm, how do I go about doing that?

  • Hey there, new here. actually I've been playing around with construct 2 for something like 2 weeks now but I'm hooked big time.

    I have this issue, you see, I want to call a function that picks a random tile object that I have and sends another object (via Pathfinder) to its X, Y. Nothing revolutionary. You see, I want to make the Function keep in mind the context of the instance of the object I want to find a path for (instance of object Pather), but it ignores the Picked Instance Condition (that calls the Function) and juts sends all of the instances of said object down the path. It looks something of the sort:

    On Call Function (Wander): Pather: Find path to Tile.X, Tile.Y

    Pick Random instance of Tile: Pather: Move along Path

    and then I call the function with

    Pick Instance by Evaluate *something*: Function (Wander)

    but it doesn't pick the instance of the evaluate condition, but instead does the function for all instances of the object (Pather)... A bit of redundancy in my describtion, I apologize but I really want to get the message across. Thanks!