Could you please tell me if the following is possible within Corona, and please give me an indication of how to implement it, if possible:
The game is based in space. I have a ship which is centered in the middle of the viewable area, and as you are looking at it, the actual ship itself does not rotate.
There will be a larger than screen size (possibly tiled) map behind it, that will be fixed in x,y space. It in itself will not rotate.
What I would like is for the ship (and the hud elements) and the viewable area to rotate over the background map as a camera. The camera would need to rotate 360 degrees. This is so I don’t have to rotate the background (tiles and everything else) and worry about all the calculations needed to keep all the background elements in check. (In other words, I want the ship to stay in place and have the illusion that everything else is rotating around it.)
I have seen a car racing game made in Corona which uses the camera concept, but I don’t think the camera rotates, it just looks like it follows the x,y orientation of the map.
I know that I have to group the ship and HUD elements together, it’s just figuring out how to connect these to the viewable area and rotate them altogether as a ‘Camera’.
(Note: I could visibly rotate the ship itself over the map, BUT the map would not visibly rotate around the player and I do not want this.)
I have tried to word this the best I can, if you need more clarification on what I am trying to say, just ask.
Note this is my first post on the Corona forums. If this post is in the wrong area, I apologise.