Platformer troubles

scurvy135scurvy135 Member Posts: 13
edited November -1 in Working with GS (Mac)
Hello,
I am new to game creation and I need to create a decent platformer for the Iphone, but I just cant seem to figure out how to get the camera (screen) to follow the character's movements. Kinda like keeping the character center screen, but with platformer attributes. You know, like the ones you play online.

I have the character moving left and right, and jumping with gravity. But I am restricted to the tiny screen, that is the initial screen size. Does anyone know how to increase the size of the frame so that I may actually walk somewhere with my character?

-scurvy

Comments

  • SparkyidrSparkyidr Member Posts: 2,033
    you need to do a few things

    1.First of, make your scene wider than the screen
    Whilst editing a sceen, click the "scene button" and then click attributes. In there you will see size.. Set the width

    2. Set your player actpor to control the camera.
    This is a behaviour, just drag it into the actor's rules

    3. Change the camera size.
    In the editor, top left you will see 2 icons. Click the one that looks like a camera to get to the camera editing. Drag the points (left-right-up-down) to be as big as you want the camera to track. (Keep it as small as poss to keep it nice and tight on your player actor.

    Hope that made sense.

    Sparks.
  • scurvy135scurvy135 Member Posts: 13
    Alright, so I already had the width at over 2000. But I am not sure what you mean by the "scene button" that just takes me to a list of sprites on my "lvl 1". There are no size or any.... and I just found it. Damn, thanks for that :)

    However, even with the Control camera behavior, the camera still is fixed at the beginning of the level.
  • scurvy135scurvy135 Member Posts: 13
    Yeah it seems the only thing that was preventing the camera from moving was cus the background was "non-scrollable" and I changed that.

    Thanks for you help Sparky :D
Sign In or Register to comment.