touch or mouse position moves with the camera... help!
Approw
Member Posts: 703
Hi all,
I have a game and after a few levels I make the scene biggen so there is more space to make the levels. you control the actor by grabing it and move it trough the levels, you can also trow it.
So with the bigger scene's and the actor moves up for example, the camera will offset from the actor, and when I let the actor and grap it again (outisde the normal play area) the actor wil jump back to the position where you touched on the screen and the camera also jumps back to normal position. so basicly the touch is only accurate when the camera is in start position of the scene.
Is there a way to make this work properly?
Hopefully there is somebody with a great answer.... Iám already stuck for 4 days and cant figure out how to do it
Thank you!
I have a game and after a few levels I make the scene biggen so there is more space to make the levels. you control the actor by grabing it and move it trough the levels, you can also trow it.
So with the bigger scene's and the actor moves up for example, the camera will offset from the actor, and when I let the actor and grap it again (outisde the normal play area) the actor wil jump back to the position where you touched on the screen and the camera also jumps back to normal position. so basicly the touch is only accurate when the camera is in start position of the scene.
Is there a way to make this work properly?
Hopefully there is somebody with a great answer.... Iám already stuck for 4 days and cant figure out how to do it
Thank you!
Comments
Its a bit hard to explain.
There's a box in the scene wich you can drag and trow, this box also controls the camera. the scene is also biggen than the camera.
Now when you grap the box and drag it up, the camera will move with the box, but as soon as the camera is outside his origin point it will offset from the actor. when I trow the actor up the camera follows properly, but as soon as I grap the box again it will jump down.
Its to hard to explain, I can make a template and post it if you want so you know what I mean