Change Layout Angle and I loose my HUD objects

0 favourites
  • 8 posts
From the Asset Store
Plugin Transition Layout C3. Layout opening and closing animation for C3. Quickly set up transitions between lay
  • 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. <img src="smileys/smiley18.gif" border="0" align="middle" />

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

    Thanks in advance. <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Set the angle of your GUI layer to 0 right after changing the layout's angle.

    This way the layer won't move/change.

  • 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?

  • 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 >

  • Holy Cow. Really?

  • Yeah. No, that didn't work. Sorry, Cow.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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 >

    <img src="https://dl.dropbox.com/u/53374990/Pics/user647_pic54060_1345007615.jpeg" border="0" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)