How to start moving camera when player starts at left corner of screen?

KRSGamesKRSGames Member Posts: 5

Hi there,

I'm new to GameSalad and trying to create my first game. So, need some expert help. The player of my game starts from left corner and I intend to start moving the camera as the player starts moving. This is because I want to stop the player moving as soon as some enemies come into focus on the right side of the screen.

I've set the "Control Camera" on the player and tried to minimize the camera area to the center. But the screen starts scrolling only when the player reaches the middle of the screen. But I want the screen to start scrolling as soon as the player starts moving at the left corner.

How do I achieve this?

Thank you :smile:

Best Answer

Answers

  • SocksSocks London, UK.Member Posts: 12,822

    You will need to make your scene bigger !

    There is nothing past the lower lefthand corner (I'm assuming it's the lower lefthand corner) for the camera to see, so make some more 'land' so the camera has something to look at, hope that makes sense !

  • robertkdalerobertkdale USAMember Posts: 912

    I believe Socks is right ;) I did a similar game before like this. As Socks mentioned you need to make the game scene wider.

    Big Smile Games Play Happy!
    Check out our other GameSalad exclusives.

  • KRSGamesKRSGames Member Posts: 5
    edited September 2014

    Thanks guys for the suggestions. But, I couldn't get it working with the above.

    However for anyone else who may want a solution for this can refer to this discussion - http://forums.gamesalad.com/discussion/23380/control-camera-don-t-move-to-center-please

  • childerhouseschilderhouses Member, BASIC Posts: 5

    i am having the same prob. i tried what socks said but my player one and 2 just centred on the xy the same as if i locked the camera on player1. seems to me there needs to
    be a rule between the camera actor and where i place my visible player. not just set x and y. more a follow the leader behaviour by a set distance but i don't know how to do that in GS . I would really appreciate some help understand how this works!:)

  • ApprowApprow Member Posts: 703

    @childerhouses Make sure you remove the camera actor. Open and unlock the player actor in the scene. Put a constrain attribute at the top, and say: CurrentScene.Camera.OriginX to selfPosition.X-200. You can tweak the 200 to shift the camera back an forward.

  • ZurtaghZurtagh Savoonga, AKMember, PRO Posts: 3
    edited April 2017

    Edited - (couldn't delete post?)

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2017

    @Zurtagh said:
    Edited - (couldn't delete post?)

    @Zurtagh after 24 hours, posts can no longer be edited except by moderators (aka Sous Chefs).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.