Rotating Layers

For questions about using Classic.

Post » Wed Jul 29, 2009 10:19 pm

Just messing round with Construct and thought I'd try messing with rotating layers for a platform game, but I've run into a problem.

When pressing spacebar Layer 1 rotates +90 - Which is just what I wanted however the platform solids don't rotate.

Here's some pics.





As you can see the guy(on layer 2) in pic 1 is stood on the Green solid platform marked 1 & when the layer is rotated 180 degrees he is still stood on the green solid platform that should be way above his head.

Is there any way of fixing this as it seem that although my green solid move cosmetically the bounding box doesn't move.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Wed Jul 29, 2009 11:04 pm

Obvious question: Are those objects not on layer 1? You said you're only rotating layer 1, so if they're on layer 2, they're not going to move.
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,208

Post » Thu Jul 30, 2009 8:46 am

[quote="Ashley":3jttx23p]Obvious question: Are those objects not on layer 1? You said you're only rotating layer 1, so if they're on layer 2, they're not going to move.[/quote:3jttx23p]

All objects are on Layer1 apart from the platform guy and the boxes with the physics behaviour which are on layer2.

My cap is here if anyone can help.

http://rapidshare.com/files/261679522/l ... roblem.cap
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Thu Jul 30, 2009 11:36 am

Well, it seems that you are rotating layer 1 only. You probably want to rotate both layers. ;)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Thu Jul 30, 2009 12:57 pm

[quote="Minor":2wm9x4tq]
http://rapidshare.com/files/261679522/l ... roblem.cap[/quote:2wm9x4tq]

Why you use Rapidshare? Waiting 40s for download and download limit is not great you know :|

Edit: As for rotating, it seems the Box object is rotating with layout but not collision mask.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Thu Jul 30, 2009 1:36 pm

[quote="Mipey":2uganah3]Well, it seems that you are rotating layer 1 only. You probably want to rotate both layers. ;)[/quote:2uganah3]

Can't do that because the platform guy should always be unmoved by the world(layer) rotation, thats why he's on layer 2.

[quote="Doppel":2uganah3][quote="Minor":2uganah3]
http://rapidshare.com/files/261679522/l ... roblem.cap[/quote:2uganah3]

Why you use Rapidshare? Waiting 40s for download and download limit is not great you know :|

Edit: As for rotating, it seems the Box object is rotating with layout but not collision mask.[/quote:2uganah3]

I have a Rapidshare account ;)

Yeah that's the problem. But is it a bug or is it fixable by someone cleverer in Construct than me.

:D
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Thu Jul 30, 2009 1:39 pm

People love when you use [url=https://www.getdropbox.com/referrals/NTEwMTA5Mjc5:o7xapvi1]Dropbox[/url:o7xapvi1], and you'll love using it too.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Thu Jul 30, 2009 1:44 pm

Signed up. Thanks.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Thu Jul 30, 2009 1:49 pm

[quote="Minor":2tq18d1e]Signed up. Thanks.[/quote:2tq18d1e]
As for a workaround just dont use Box object if you gonna rotate something, just use one Sprite that you can resize freely (you can resize multiple copies of one sprite and they wont interfiere with other copies).
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » Thu Jul 30, 2009 2:09 pm

[quote="Doppel":2ywe3ybn][quote="Minor":2ywe3ybn]Signed up. Thanks.[/quote:2ywe3ybn]
As for a workaround just dont use Box object if you gonna rotate something, just use one Sprite that you can resize freely (you can resize multiple copies of one sprite and they wont interfiere with other copies).[/quote:2ywe3ybn]

No still the same thing unfortunatley. Sprite rotates fine but doesn't change it's collision/bounding box, the platform guy still stands on the platform that should have rotated.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests