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
23
S
6
Posts: 68
Reputation: 1,453

Post » Fri Mar 10, 2017 6:42 am

ImageImage
B
123
S
53
G
24
Posts: 794
Reputation: 23,942

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
23
S
6
Posts: 68
Reputation: 1,453

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
123
S
53
G
24
Posts: 794
Reputation: 23,942


Return to How do I....?

Who is online

Users browsing this forum: Exion and 8 guests