Hi there,
I would like to modify the platform game demo that comes with WCK to follow a camera instead of the boxman 'player'
I have set up a camera class (extends sprite) and i have an instance of it on stage called 'cameraObj'
On the WorldGame component i have set focusOn to 'cameraObj' and i can now manipulate my camera and WCK follows it nicely, keeping the parallax effect.
my main issue is that rotating or scaling the camera has no effect, it seems that focusOn just responds to x/y coords.
any ideas on how i could go about implementing rotating and scaling of the World from within my Camera class? I realise there are a lot of camera/panning/rotating/zooming questions on here but in the case of WCK a system has already been implemented so I was hoping for some advice on how to work with that.
thanks for your help
-D
I would like to modify the platform game demo that comes with WCK to follow a camera instead of the boxman 'player'
I have set up a camera class (extends sprite) and i have an instance of it on stage called 'cameraObj'
On the WorldGame component i have set focusOn to 'cameraObj' and i can now manipulate my camera and WCK follows it nicely, keeping the parallax effect.
my main issue is that rotating or scaling the camera has no effect, it seems that focusOn just responds to x/y coords.
any ideas on how i could go about implementing rotating and scaling of the World from within my Camera class? I realise there are a lot of camera/panning/rotating/zooming questions on here but in the case of WCK a system has already been implemented so I was hoping for some advice on how to work with that.
thanks for your help
-D