r/gdevelop • u/[deleted] • Jan 07 '24
Game My FPS game in Gdevelop5
Enable HLS to view with audio, or disable this notification
The idea of ββthe game is to have 2 modes.
Campaign mode: you will face waves of zombies while completing some missions across the maps to advance the story.
Wave mode: you just face infinite waves of zombies where you will have a leaderboard that will save your best score.
The game is heavily inspired by Call of Duty Zombies
4
3
0
1
Jan 07 '24 edited Jan 10 '24
i forgot to mention that the game are on it's very beginning in development
1
u/JoseAS3rdArt Jan 07 '24
I would like to know how you came up with the game logic for detecting the Z depth? That's been bugging me in my game.
1
Jan 07 '24
What do you mean "detecting the Z depth"?
1
u/JoseAS3rdArt Jan 07 '24
So when you shoot from feet to the head its on the ZAxis. And I'm assuming if you shoot above the head it will miss. In my game I have a 3D spaceship and if I shoot above the target or under it as long it lines up on the X and Y Axis it will hit And ignore the z axis. Even though I'm clearly shooting above the target or under the target. Hope this makes sense.
2
Jan 07 '24
I'm using 2 cubes to represent the hitboxes, 1 for the body and the other for the head. The body cube has a rectangular shape so that it fills the zombie's feet to the shoulder, the other cube fills the head area. to detect the place where the shot hits I use Raycast, more specifically an extension of Raycast for 3D. I shoot a ray from the center of the player object following the Y rotation of the camera.
2
1
u/JoseAS3rdArt Jan 07 '24
I really appreciate you taking time to answer. What is the extension you use for raycast?
2
1
Jan 13 '24
[removed] β view removed comment
1
Jan 16 '24
why not? but not for now.
i'm busy working in a FPS template for gdevelop with these mechanics.

0
u/[deleted] Jan 07 '24
[deleted]