I wanned to try out the new 3DCam to give a bit of perspective for my top down shooter, which really looks cool. so i did this:
https://i.gyazo.com/925a5511de23374458ccd86d6147346f.png
Now i want the mouse position to be absolute, so where the mouse is the playersprite should be.
So normally when i scale a layer i just use Mouse.X("layerName") or Absolute to position an object correctly to the mouse.
However this does not work for obvious reasons with that cammera positon. How do calculate the correct position of the playersprite in a 3DCam perspective? So the playersprite is actually where the player sees the mouse and not on a relative position for to the mouse cursor.
Hope this is understandable :D
Does this has something to do with CanvasToLayerX(layer, x, y, layerZ)
Kind regards
Joschi