How do I rotate the layout, But not from the center?

Get help using Construct 2

Post » Thu Mar 09, 2017 11:29 pm

I would like to use the "set layout angle to" by reference to the position of an object in the layout as the point of the rotation source. It is possible?
B
18
S
4
Posts: 48
Reputation: 1,088

Post » Fri Mar 10, 2017 6:42 am

ImageImage
B
102
S
46
G
22
Posts: 772
Reputation: 21,593

Post » Fri Mar 10, 2017 6:12 pm



I think to do something like Don't Starve. Where the rotation of the layout lets you see behind objects.

Test .capx https://drive.google.com/file/d/0BymfAvlR-3v5X05UY0pKRmRERGM/view
B
18
S
4
Posts: 48
Reputation: 1,088

Post » Fri Mar 10, 2017 10:18 pm

Limit player movement or walk area when it about to reach the border of layout to keep it at center. The problem is when the player reach the edge of layout. For fixing player control, some angle calculation need to be done. Use z-sort based on Y position to make object behind/over another.

To actualy sort z-order correctly, we need to consider layer/layout rotation so it will picking correct relative y position based rotation. Here the solution:
https://www.dropbox.com/s/1xbj1d26xldtd ... .capx?dl=0
ImageImage
B
102
S
46
G
22
Posts: 772
Reputation: 21,593


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests