How do I Make better bullets?

0 favourites
  • 3 posts
From the Asset Store
This pack contains 10 types of bullet effects, with different shapes and colors.
  • I'm using the new 3D camera feature, in the new beta, and I'm making an FPS game, I've got the basics down (Movement, Jumping, Looking, Basic shooting). I'm still testing spawning the bullet but I've got it down. However, it only goes in one direction, I want it to in the direction that the camera is looking at, but it only goes along the floor

    Heres the game

    https://drive.google.com/file/d/1G1ovmAzBeWQicKE0ml5lC52D71soa0Gv/view?usp=sharing

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Despite the new 3d visuals, C3 is still a 2D engine. As far as the engine is concerned, everything is actually still on the 'floor' despite how it may look visually.

    The built in bullet behavior has no z axis component. You'll need to manually adjust the bullet object's z elevation every tick based on the vertical angle of the camera when it was created. You'll also need to modify the base speed as well, as a bullet shot straight up or down actually isn't "moving" at all.

    Anyways, you're going to have trouble trying to make an fps like that since there are no collisions in 3d space anyway. You might be able to fake it by comparing the zposition and zhight of objects while overlapping, but that's going to result in other problems. I imagine you might as well spend your effort learning how to use an actual 3d engine instead, or read up on how verticality in Doom 2 worked, or just go with a completely "flat" levels like Wolfenstein.

  • Make your bullet a 3d object as well as your enemies. When the bullet is created make sure the z elevation will allow the bullet to hit the enemy. Give your enemies a hit count - default 0.

    ===============================================================================

    Bullet on bullet step Enemy set hit count to 1

    For each Enemy Destroy Bullet

    Enemy hitcount = 0

    Bullet is overlapping enemy

    ===============================================================================

    Enemy hitcount = 1 Destroy enemy

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)