05-29-2012, 06:14 AM
Okay, I'm not a great scripter, but here's a nice thing I'd like... I'd like the panorama (or some other layer behind the map) to NOT move at all, except when a player pushes Q or W (L and R)... For instance...
Depending on the Theta (which I assume is based on a 360 degree arc, I would like the panorama to scroll x a certain amount of pixels depending on the theta. So for instance... say you have a 360degree panorama shot... and by pushing R your theta increases by 5... well, if a theta of 90 degrees equals 640 on the panorama then each theta increase should equal around 35 pixels scrolling left or right on the panorama. Now I said ABOUT, because it's actually 35.55556 so I think after 5 successive movements we might have to make it move the screen 36 pixels one out of every 6 times.
Is there a way this can be done?
Depending on the Theta (which I assume is based on a 360 degree arc, I would like the panorama to scroll x a certain amount of pixels depending on the theta. So for instance... say you have a 360degree panorama shot... and by pushing R your theta increases by 5... well, if a theta of 90 degrees equals 640 on the panorama then each theta increase should equal around 35 pixels scrolling left or right on the panorama. Now I said ABOUT, because it's actually 35.55556 so I think after 5 successive movements we might have to make it move the screen 36 pixels one out of every 6 times.
Is there a way this can be done?