Problem with vertical scrolling in portrait for iPad
cmasterenko
Member Posts: 52
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
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?
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?
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.