rotation, reference point help

i have a game world that is always moving down
with the player located in the center of the screen
i want the game world to rotate with the reference point
always centered of the player.
any ideas? my brain is hurting

i have a runtime that keep the world moving by
world.y = world.y + 0.25

and a runtime then rotates the world using the gyroscope
but changing the x and y reference point of the world doesnt seen to
be working for me

here’s an app that is simular to what i need
http://www.appitalism.com/app/apple-ios/414307-spinner-prologue/ [import]uid: 7911 topic_id: 34006 reply_id: 334006[/import]

I haven’t actually tried anything like this before but If the player is always in the exact centre of the screen rotating the entire stage object may work.

E.g. local stage = display.getCurrentStage()

You would then rotate that stage object, but bear in mind that would also rotate the player. Therefore if you wanted the player to be excluded by the stage rotation you would also have to apply the opposite rotation you used on the stage to the player.

Does any of that make sense? It’s mainly me thinking out loud :slight_smile: [import]uid: 69826 topic_id: 34006 reply_id: 135233[/import]

thanks but this wouldnt work. since the world is moving the reference point for the rotation need to also move but even if i try to change the xreference and yreference it always seems to rotate from the first set of reference points. ill try to post some sample code later [import]uid: 7911 topic_id: 34006 reply_id: 135235[/import]

I haven’t actually tried anything like this before but If the player is always in the exact centre of the screen rotating the entire stage object may work.

E.g. local stage = display.getCurrentStage()

You would then rotate that stage object, but bear in mind that would also rotate the player. Therefore if you wanted the player to be excluded by the stage rotation you would also have to apply the opposite rotation you used on the stage to the player.

Does any of that make sense? It’s mainly me thinking out loud :slight_smile: [import]uid: 69826 topic_id: 34006 reply_id: 135233[/import]

thanks but this wouldnt work. since the world is moving the reference point for the rotation need to also move but even if i try to change the xreference and yreference it always seems to rotate from the first set of reference points. ill try to post some sample code later [import]uid: 7911 topic_id: 34006 reply_id: 135235[/import]