Ive have a small template both in 2D and 3D.
In the 3d mode the camera its changed to x -45 rotation and sprites are also x -45... The problem here is when the player jumps .
match state:
"st_idle":
YZ_relative = translation.z;
_stop();
_move();
_attack();
$playerAnim.play("idle");
"st_walk":
YZ_relative = translation.z;
_move();
_attack();
$playerAnim.play("walk");
"st_jump": #--------jumping-------
_jumpMove();
motion.z = motion.y*-1 ;
if ( is_on_floor() ):
motion.z = YZ_relative;
state = "st_idle";
when he lands on the floor the z movement ( translation.z ) keeps increasing 0.00001 sometimes 0.005 making him move down about 5 pixels.
Iam using this same template on the video:
I still havent tested the hitboxes or making a floor, but the 2D seems to me like a more easy way to go.
Iam having problems with the 3Dphysics for some reason my move and snap only works with the move speed above 3.