How do I Tile an Object to two X,Y points?

Get help using Construct 2

Post » Sat Jun 11, 2016 10:14 pm

Just to keep it simple I will use simple math.

From 45,45 to 90,90 I would like to know how to tile an object until it touches the other point.

The two points may change at times. It may change to 0,0 to 45,45 or 45,45 to 135,135.

The angle will always be the same 45° and only the length will change. The length will only change in increments of the tiled object, meaning when the length increases one more object should be tiled at the end.

I am just unsure how to tile an object at an angle.
It may be more simple to have a line drawn and then tile on the line every X pixels, not sure how to do that either.
Last edited by Unconnected on Sun Jun 12, 2016 3:15 am, edited 4 times in total.
B
58
S
33
G
13
Posts: 223
Reputation: 12,080

Post » Sun Jun 12, 2016 1:30 am

Are you using TileBackground or TileMap ?
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Sun Jun 12, 2016 1:31 am

I am using Tile-Background.




Note: I changed the numbers around. I was in a hurry when I typed it and it was bad math.
B
58
S
33
G
13
Posts: 223
Reputation: 12,080

Post » Wed Jun 15, 2016 8:04 am

If you use TileMap it might be easier, here is a half done demo as I have to head off to dinner soon.

https://dl.dropboxusercontent.com/u/108 ... Arrow.capx

If you want to use TileBackground, I fear you can only go at right angles and with a repeating grid. You may want to look at using a sprite instead (But I still feel TileMap is best)
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Jun 15, 2016 11:21 pm

I may be adding nodes to the map. I may be able to apply them with nodes since it is the same image tiled at the same angle. I will look at the example. Thanks
B
58
S
33
G
13
Posts: 223
Reputation: 12,080

Post » Wed Jun 15, 2016 11:29 pm

The example is pretty neat. I am not sure exactly how it applies to what was asked though. I will hold on to it and reference it for another project at a later time. I understood what you meant by using a tile-map. Since it is the same angle I could just use a tile-map to apply the images.
B
58
S
33
G
13
Posts: 223
Reputation: 12,080


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest