How do I make a wall that follows the front of the viewing area?

bladeolsonbladeolson Member Posts: 295
edited November -1 in Working with GS (Mac)
I am playing around making a game using the side scroller space ship template. I was able to make it so my player can't go up out of the screen or below the screen. I want to make sure they can't leave left or right either. But since the view is scrolling how do I make walls that scroll along with the view?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Go to your scene.

    In the Inspector on your right (where you see all your actors) click on the 'scene' tab (next to the 'game' one).

    Here you'll see your scene's layer.
    Create a new layer - by pressing the '+' button at the bottom of the inspector.

    Call it 'walls' or whatever you like

    Now just uncheck the box under 'scrollable'.

    when you create your wall actors, you can see them in this same view. Drag them to the 'Walls' layer.

    They should now not scroll.

    Alternatively, you can just place the walls where you want them and make sure that within their attributes the 'moveable' check box is unchecked.

    Hope that helps,

    QS :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.