Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Bullet collision stops working

Bullet collision stops working

Scheduled Pinned Locked Moved Help and Support
5 Posts 3 Posters 803 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • leewsimpsonL Offline
    leewsimpsonL Offline
    leewsimpson
    wrote on last edited by
    #1

    Does anyone feel like helping me debug an issue? Silly tower defence game, and I’m still trying to figure this program out!

    Starts off Ok, and the worms detect the bullets. After a while - they stop responding to the shot event.

    https://go.aws/3fB0SqN

    Feature request number one for me is some sort of logger - so you can put log commands in and see some sort of debug output.

    Thanks!

    Aidan_FireA 1 Reply Last reply
    0
    • leewsimpsonL leewsimpson

      Does anyone feel like helping me debug an issue? Silly tower defence game, and I’m still trying to figure this program out!

      Starts off Ok, and the worms detect the bullets. After a while - they stop responding to the shot event.

      https://go.aws/3fB0SqN

      Feature request number one for me is some sort of logger - so you can put log commands in and see some sort of debug output.

      Thanks!

      Aidan_FireA Offline
      Aidan_FireA Offline
      Aidan_Fire
      wrote on last edited by Aidan_Fire
      #2

      @leewsimpson I had a look and I think I've figured it out mostly. It's not working because the worms are waiting to be hit by a bullet from a specific behaviour, which is the shoot behaviour in the ORIGINAL tower, not the spawned ones. For example: move your original tower that's outside the screen into the range of the worms, it will shoot and kill all of them and work fine.

      To fix it for the worms, delete your Hit by Bullet behaviour in the worms and replace it with the same thing but don't select any shoot behaviour, then they will respond to any bullet from any object that hits them.

      What confuses me the most is why the first few worms can even take damage from the spawned tower in the first place, it makes no sense they shouldn't be taking damage at all. Seems like a bug. This is why I make my own bullets instead of using shoot behaviours lol.

      1 Reply Last reply
      0
      • SplitMindGamingS Offline
        SplitMindGamingS Offline
        SplitMindGaming
        wrote on last edited by
        #3

        I’m not good with all the calculate distance and everything but I did notice that after it hits the first worm the bullets seem to not reach the worm completely. Like it will disappear right before hits the worm. Also looks like the bullet is hitting the wall. Idk. My guess it has something to do with disabling the object and also on how it calculates the distance.

        1 Reply Last reply
        0
        • SplitMindGamingS Offline
          SplitMindGamingS Offline
          SplitMindGaming
          wrote on last edited by
          #4

          Actually that’s not true because when u turn on object boundaries it’s indeed hitting the worm.

          1 Reply Last reply
          0
          • leewsimpsonL Offline
            leewsimpsonL Offline
            leewsimpson
            wrote on last edited by
            #5

            Thank you so much for taking the time. Removing the specific shoot works as a good workaround.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Search