Change Layout Angle and I loose my HUD objects

Get help using Construct 2

Post » Thu Nov 08, 2012 9:17 pm

So this level has two invisible sprites that, "Touch > On touched SPRITE > System > Set layout angle to 90"

That works fine (a little too fast on the angle switch, but that's another issue). However, I lose the objects in my HUD that display my score and the two touchable sprites for controls.

Hope that is clearly understood. So, how do I keep the HUD items on the 'playable' screen?

Thanks in advance.
B
5
Posts: 32
Reputation: 789

Post » Fri Nov 09, 2012 11:03 am

Set the angle of your GUI layer to 0 right after changing the layout's angle.
This way the layer won't move/change.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Nov 09, 2012 9:08 pm

@Kyatric, Thanks! I actually found that I was moving the layout and not the layer. Stupid mistake. It works now. But the speed at which it 'flips' is way too fast. Is there a method of controlling the flip speed?
B
5
Posts: 32
Reputation: 789

Post » Fri Nov 09, 2012 9:10 pm

rotate it certain amounts with wait in between each is all I can think of.

eg. rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees >
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Fri Nov 09, 2012 9:16 pm

Holy Cow. Really?
B
5
Posts: 32
Reputation: 789

Post » Fri Nov 09, 2012 9:35 pm

Yeah. No, that didn't work. Sorry, Cow.
B
5
Posts: 32
Reputation: 789

Post » Fri Nov 09, 2012 11:47 pm

Here is an implementation example.

Be sure to check the tutorial about framerate independence.

Basically, you change the angle so that it "travels" 90 over a second.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Nov 10, 2012 4:20 am

[QUOTE=EncryptedCow]
eg. rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees > wait 0.1 > rotate 10 degrees >[/QUOTE]

B
28
S
8
G
1
Posts: 469
Reputation: 4,683


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests