How do I a fast bullet but no bug

0 favourites
  • 8 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Hello developers,

    I have a simple problem, but it is difficult to solve rsrsr ...

    I need a very fast bullet like in blacktorne, when I make the bullet have the speed I want it it jumps and passes from the enemy not colliding ...

    Is there a way I can detect ahead like a ray cast? To avoid this?

    I tried to raise a sprite until it collided but the "WHILE" that is the way to do fast did not work and crashed the game.

    Summing up:

    I need a very fast shot but no crash in colision.

  • Try creating a transparent sprite for a single frame that goes from the gun to the edge of the screen (and as wide as you see fit) in the angle the gun is pointing, and check for collision on that instead.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you use "while" you need to make sure it doesn't create an infinite loop. That is the crash you speak of.

    The bullet behavior has a "on step" condition you could probably use to check for collisions at a finer precision.

    You could also use something like a raycast to do it too.

  • Try creating a transparent sprite for a single frame that goes from the gun to the edge of the screen (and as wide as you see fit) in the angle the gun is pointing, and check for collision on that instead.

    I try but the Solid obstacles are a problem.

  • When you use "while" you need to make sure it doesn't create an infinite loop. That is the crash you speak of.

    The bullet behavior has a "on step" condition you could probably use to check for collisions at a finer precision.

    You could also use something like a raycast to do it too.

    I did not find this condition in bullet behavior: /

  • "On step" condition is only available in Construct 3.

    In C2 you can try pinning a bigger (longer) invisible sprite to the bullet. Use it to check for collisions with enemies

  • For C2 you can adapt this raycasting axample for really fast bullets or lasers.

    it does pretty much the same thing as bullet stepping

    It works perfectly and no major performance impact

    https://www.scirra.com/tutorials/902/li ... raycasting

  • For C2 you can adapt this raycasting axample for really fast bullets or lasers.

    it does pretty much the same thing as bullet stepping

    It works perfectly and no major performance impact

    https://www.scirra.com/tutorials/902/li ... raycasting

    Thk <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

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