E
Edwin
Guest
I am making beat 'em up game.
I have Z-axis to make 3D illusuion so player can jump, fall with gravity.
The problem is when I create attack box or hit box as you want to call it, all the enemies that collides the attack box are getting hit, ignoring Z-axis.
So how to make the enemies and other phenomenon won't ignore Z-axis?
I have Z-axis to make 3D illusuion so player can jump, fall with gravity.
Code:
// Movement
grav=1;
hspd=0;
vspd=0;
zspd=0; // This is abscissa speed.
// Variables
z=0; // This is Z-axis, position of Z (fo'dummies).
zFloor=0; // This is Z-axis position, when player is stop falling.
So how to make the enemies and other phenomenon won't ignore Z-axis?