Checking tile rotation at position / Check if flipped

Get help using Construct 2

Post » Tue Jul 01, 2014 6:03 am

Is there a way to check the angle of a tile at said position, or if it's flipped horizontally/vertically?

I have a 32x32 square that's made from 4 16x16 tiles, and they're the same tile but rotated:

Image

I'm checking at the beggining of the game for these tiles so I can change them for sprites (so I can destroy them when a bullet collides or something), but I wanted to mirror/flip them so it stays the same as the tile.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Tue Jul 01, 2014 6:11 am

Does this work?

start of layout
+for each tiledbackground

-> create object sprite at tiledbackground.x, tiledbackground.y
-> set sprite.angle to tiledbackground.angle
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
124
S
42
G
17
Posts: 2,225
Reputation: 19,887

Post » Tue Jul 01, 2014 7:36 am

No, that only gets the angle of the whole tilemap object.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Tue Jul 01, 2014 3:08 pm

Ahh tilemap, sorry I had been thinking of tiledbackground objects. I'm not sure if you can get individual tile data as I don't use that plugin myself, sorry!
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
124
S
42
G
17
Posts: 2,225
Reputation: 19,887


Return to How do I....?

Who is online

Users browsing this forum: KefiRocK, Lordshiva1948, Yahoo [Bot] and 5 guests