Scroll vertically

0 favourites
  • 10 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hello to everyone.

    I'm creating a platform game which scrolls in the Y axis.Within it, I have a status panel at bottom of the layout. However, when My character starts climbing up the level, this status panel does not move vertically along with him. Eventually it remains at the bottom.

    I made a video :D where you can see it.

    youtu.be/w8Dzm8ltOYU

    Is there any way to fix it ?

    I'll appreciate any help.

    Thank you.

  • Make a new layer for your status panel.

    Set the new layer parallex to 0,0 (Under layer properties)

    scirra.com/manual/85/layers

  • Hello.

    I did what you suggested me.

    However, setting the layer's (plantilla) parallax to 0,0 moves the status panel and when I run the project it disappears completely.

    Here's the video.

    youtu.be/GsUkB0BXPcQ

    Thank you for your help.

  • In the first video the status panel moved in the x direction. Was this done with events?

    If so when setting the parallax to 0,0 , you should remove these events.

    Also If you want the status panel to be above everything else it would be a good idea to have it on the top layer. (I got the idea from the video it wasn't).

    Also you should place your panel inside the dotted line, for that represents the viewport when game is playing.

  • the Status panel moves in the X axis because layer "Plantilla"' (where it is) parallax attribute is set as 0,100.

    Yes, Layer "plantilla" is now at top. :)

    what else can i do ?

  • Also you should place your panel inside the dotted line, for that represents the viewport when game is playing.

    Did you do this?

    Else could you just post a link to your capx. Setting something like this up is very easy.

  • It's exactly as LittleStain said, if you want a layer to move with the screen, you need to set it to paralax 0.0 and place all interface objects in that layer inside the screen.

  • I did put the status panel inside the screen as you suggested me.

    <img src="http://s21.postimg.org/nwov769xz/sc1.png" border="0" />

    but.... when i run the project

    <img src="http://s22.postimg.org/koganl9td/sc2.png" border="0" />

    Is there any problem if i upload the project file? (I mean... because the copyright thing )

    Thanks. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK, i did it.. thnks :)

  • Is not there a "pin" behavior for this? Search for it in the manual, pretty sure it's can resolve your problem. ...no?

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