thandwiches01
Member
Hello. In my 3D game I have a fake jumping mechanic, I basically create a 2d object with a collision underneath (this object is hidden) and whenever you press space, the 2d object jumps. I have my 3d player's z axis set to match the jump objects vspeed.
My problem is that I want to create a zspeed that works with a zgravity and has working 3d collisions. I only started a few minutes ago, and I am kinda stuck, how would I go about doing this
Here's my code that I have so far:
My problem is that I want to create a zspeed that works with a zgravity and has working 3d collisions. I only started a few minutes ago, and I am kinda stuck, how would I go about doing this
Here's my code that I have so far:
Code:
var zgravity_speed = 1;
var place_free_z = (z > argument0.hitbox[z1]);
z -= zgravity_speed * place_free_z;