I was wondering if anyone knew a way to rotate a isometric background when the player moves?
I have tried to set the background to the rotate behaviour that when player moves left, background rotates clockwise, and when player moves right, background rotates counterclockwise.
But once again I dont want the background to exceed a certain angle (as in I dont want my isometric background to rotate past a certain degree).
The pseudo code would look something like this:
If player moves left, then rotate Isometric background clockwise 1 degree
if background angle = 180 degrees then lock background angle
If player moves right, then rotate Isometric background counterclockwise 1 degree
if backround angle = 180 then lock background angle
By lock I mean the background stops rotating past 180 degrees and wont go above that.
I want to use a "half-rotation" effect to kinda simulate 2.5D on a isometric game, but am having some trouble thinking this through. Is there a way to save the angle of the background to a global variable, so that I can compare the angle to the value in a variable?
I was also wondering if anyone had any concept ideas, calculations, Capx files or algorithm that they would be willing to share?
Any help would be appreciated