Hey guys,
Very new to Playmaker, and been stuck for two days on 2d movement, and seems every road leads back to the linked posts below, and I just cant seem to wrap my head (correctly) around it.
http://hutonggames.com/playmakerforum/index.php?topic=272.0http://hutonggames.com/playmakerforum/index.php?topic=270.msg1073#msg1073I'm making a 2d top down game, and cannot currently seem to make my character move correctly.
I've managed to get it moving in the x and z axis, my problem is rotation.
(Have also tried using camera on the side, and moving in the x and y axis)
What i want is to have my spaceship rotate its nose to point at the mousepointer, while I apply force to the ships body to move it forward and sideways, but always staying in 1 plane.
Have tried "Get Mouse X and Y", storing in a variable, putting those variables into "Screen to world point", setting those 2 cordinates as the cordinates for "set vector3 XYZ", and then having my sprite "look at", "iTween look to", and "smooth look at". It just wont work.
Also tried adding in an empty game object, and "iTween move to" the game object to the "vector3 XYZ", and then having my spaceship "Look at" that empty gameobject. This was the closest I've come, as the spaceship did indeed turn and look at the gameobject, but the gameobject did not seem to be moving.
So I have tried using your mouse 3d plane drag, but unsucessful so far in figuring out how to make it work.
Would appreciate any pointers in the right direction, or some newbie friendly instruction on how to implement the 3d plane drag
Best regards,
Henrikc3