Different way to change orientation ?

ApplaudAppsApplaudApps Member Posts: 308
edited November -1 in Working with GS (Mac)
Hi,
Is there a way to autorotate without rotating? Like on Angry Birds when you rotate the iPhone the game jumps instantly to the new orientation rather than rotating to it.

I want my game to do that too, as currently when it rotates you can see actors that extend beyond screen boundaries? Doesn't look nice! It exposes whats going on behind the scenes. Can GameSalad give us an "instant" option as well as the "rotate" option?

Thanks.

Comments

  • old_kipperold_kipper Member Posts: 1,420
    Yes it is possible. But there can be a lot of problems and work involved. By monitoring the device attributes you can get the orientation of the device and then switch your game by rotating the scene. This involves rotating each actor and compensating for their position. This has to be followed by reversing their physics and any controls. it is no small job for most games.

    It's a lot of work for a what you consider a better look on the changes. Hope that helps.

    kipper
  • ApplaudAppsApplaudApps Member Posts: 308
    kipper - I wondered if there was a built-in method I wasn't seeing. Yeah I realised it could be done that way but thats a mammoth task and one I'm not prepared to take. If the feature was available I would definitely use it as its a nice transition for GameSalad games since you can see around the edges during a rotate :(

    I might just stick to one orientation in that case and force the player to use that.
  • old_kipperold_kipper Member Posts: 1,420
    One thing that is really nice to do is to put in some things that are based on orientation in one scene that does not actually switch. I've been working on a project where when you turn the phone turns upside-down the characters fall to 'down' to the ceiling (as was), and then get up and start to explore the world from a new perspective. Also I have some objects orientate to the accelerometer (weird I know but mountain goats that always avoid falling toward real gravity...). These seem to really amuse kids who have play tested the levels.

    Good luck.
Sign In or Register to comment.