Preview Screen Question

Within the rectangle preview screen is a smaller outline of a rectangle. I assume I'm able to use the whole thing? If that's correct, what is the smaller rectangle outline indicating?
Thanks.

Comments

  • allc1865allc1865 Member, PRO Posts: 777
    Yeah, you use that whole rectangle (up to the bigger one). There's two rectangles for the iPhone and I'm not sure about any other devices. Good question. I hope someone can answer that for you! :) ;)
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited November 2013
    It's used in conjunction with the camera and the control camera behavior. You can adjust the inner rectangle to control how tightly it follows your actor.

    see here for more details:

    http://www.jamie-cross.net/?portfolio=gamesalad-recipe-005-making-your-platform-game-level-scroll-camera-scrolling
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The outer gray area is the project margin. You can use this space to place actors that affect your game but without being visible. So for example, if you want to have an actor that controls sounds or spawns other actors, you could place it in the margin. This is especially useful for menus that interpolate their position onto the screen from off-screen. You can also make your scene size larger than the device size (e.g. iPad Landscape height is normally 768 but you could double it to 1536) and add menus, etc. that come into view from off-screen.

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

  • CharlieG97CharlieG97 Member Posts: 52
    The outer gray area is the project margin. You can use this space to place actors that affect your game but without being visible. So for example, if you want to have an actor that controls sounds or spawns other actors, you could place it in the margin. This is especially useful for menus that interpolate their position onto the screen from off-screen. You can also make your scene size larger than the device size (e.g. iPad Landscape height is normally 768 but you could double it to 1536) and add menus, etc. that come into view from off-screen.
    So anything in the outer area will function but not be visible?
  • forthebirdsforthebirds Member, PRO Posts: 16
    Yes, actors outside the visible area are still working. So you can use these actors (which are placed outside) to run some game or sound rules for example.
    And sometimes it makes sense to use the "destroy behaviour" for game actors, which are going off-screen and aren't needed anymore.
  • CharlieG97CharlieG97 Member Posts: 52
    Yes, actors outside the visible area are still working. So you can use these actors (which are placed outside) to run some game or sound rules for example.
    And sometimes it makes sense to use the "destroy behaviour" for game actors, which are going off-screen and aren't needed anymore.
    Thanks for telling me. My game would look a little odd if I didn't know :P

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Just so you know, you can build a game without ever using this margin area. It's just there if you need it.

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

Sign In or Register to comment.