• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

3D Working with Zspeed?

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:
Code:
var zgravity_speed = 1;
var place_free_z = (z > argument0.hitbox[z1]);
z -= zgravity_speed * place_free_z;
 
Top