playMaker

Author Topic: iOS - touch and hold with moving camera.  (Read 1562 times)

kinetiknz

  • Junior Playmaker
  • **
  • Posts: 85
iOS - touch and hold with moving camera.
« on: January 11, 2015, 09:18:19 PM »
Hi There,
I am attempting to create an FSM that manages to do this:

The player taps and holds a location on screen which updates where the player character is - in real-time. The trick is, I want the player character to be a child of the camera. The camera is moving in one direction and the speed is increasing. The dynamic is very similar to '1942' and
raiden: but obviously controlled via iOS touch.

Would you convert the touch 'screen-space' into worldspace and compare those coords to the current coords of the character, and then itween move between them every frame?

Thanks for any guidance
Matt