Hi,
I am using cameraVPlay to follow my player on screen.
When in ‘play’ state, the camera is set to follow my player. I also want to be able to zoom in and out of the playing area using pinch zoom. I have noticed that pinch zoom only works when the camera is set to free. As soon as you set it to follow an entity, it stops you being able to drag the screen around – which I would expect, as it is supposed to be locked to the entity. However it also prevents pinchzoom from working. I want to be able to use pinchzoom to zoom in and out, even when the camera is locked to the player. I have found I am able to create a QML pinchArea and link this to my camera, however this seems to be a waste of efficiency as the camera has this functionality built in. So I have a few questions:
- Is there a way to use the built in pinchzoom functionality of the camera when locked to an entity?
- When I am level editing, I have the camera in free state, so I can drag the camera around freely. I want to be able to act upon a click event in order to turn the camera pan functionality on/off. Is it possible to directly access the onClicked or onPressed event for the camera?
Thank you
Darren