Problem with vertical scrolling in portrait for iPad

cmasterenkocmasterenko Member Posts: 52
edited November -1 in Working with GS (Mac)
I have a background in portrait mode for iPad that's 768x2048 and the camera follows me attribute on an actor, but I can't get my game to scroll vertically. It will only wrap, but not scroll to see the rest of the background. What can I do?

Comments

  • cmasterenkocmasterenko Member Posts: 52
    Never mind, I just made a stupid mistake. But, I do have another question, is there a way to make the scrolling smoother? My character goes all the way to the bottom of the screen then reappears at the top, can I make it wrap but still keep the character somewhere in the middle of the scene the whole time?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You can try playing with the camera controls. On the right-side of the Scene Editor, click on the Camera tab. Move those silver bars in closer to define a tighter area.

    Click back on the arrow tab and place your player inside that area.

    When your player hits the edge of that defined area, it will start to "push" the camera.

    You could make that area 0x0, and also place your actor in the center of the Scene, and it will always stay in the center while the background scrolls underneath...

    Does that make sense?
  • cmasterenkocmasterenko Member Posts: 52
    Yeah that makes sense, I just tried it and it works really well until it gets to the end of my background and needs to wrap then it will disappear like it was before and reappear at the top of the screen. Is there a way around this besides just having it not wrap at all?

    Also on another topic, I have a life actor that shows how many lives the player has still and when I put it on a different layer that doesn't scroll so it will stay with the actor, it disappears once I try to preview it but is still there in the scene editor. It will also stay there when I leave it on the scrollable layer but will not move with the actor. What am I doing wrong?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    So for the life bar, you need to create another layer in the Scene tab.

    You need to make that layer unscrollable.

    All of the elements on the unscrollable layer need to be in the lower left area of the screen.
    If it is an iPhone game, the lower 480x320 or 320x480 of your Scene, even if your Scene is larger than that.
  • cmasterenkocmasterenko Member Posts: 52
    Great, now it shows but I'm back to the weird wrapping problem since it won't let me move my background down to start the at the top of the visible area. When I move it there, it stops a little below the visible area and continues on top of it. How can I change this?
Sign In or Register to comment.