Collision Issue - Bullets passing Through Targets

j1knight5j1knight5 Member Posts: 4
edited November -1 in Working with GS (Mac)
Hey Folks -

I'm working on a new shooter and I've come across an interesting problem that I've seen occur on several projects I've built. I'm seeing bullets striking Actor targets and then instead of recycling (moving back to their START X/Y positions), continuing onwards and off the screen.

I'm using the Recycle technique that the guys at Deep Blue Apps demonstrate, in which you have 10 of the same 'bullet' actors on screen, and when you activate the 'fire' trigger button, the bullets will 'MOVE' from their start positions off screen to the player and then interpolate in the direction they are being fired. When bullets strike a target or fly off screen, the bullets are set to reset by 'moving' back to their start positions until fired again.

In my current project, I have 2 types of weapons - Bullets and Missiles (using the recycle technique with appropriate attributes set for all), shooting at balloons. Missiles are working just fine - when they collide with my (3) types of balloons, the balloons pop, the missiles recycle, and all is happy.

When using bullets, the bullets will pop all three types of balloons, but will only recycle when hitting the first type of balloon. When the bullets strike balloons of type 2 or 3, the balloon pops, but the bullet doesn't recycle - it continues flying (killing more of type 2 & 3 balloons) until it collides with a balloon of type 1 or flies off screen and recycles.

I've tried setting the collision Rules to trigger when bullets Overlap/Collides with the Balloon Actor Tag as well as listing the individual balloon actors. Both don't work.

What's making me crazy is the actor logic is identical between the Bullets and the Missiles (simply different art) and the Missiles work fine.

Anyone have similar issues?

- J

Comments

  • j1knight5j1knight5 Member Posts: 4
    BUMP!
  • JeffreyShimaneJeffreyShimane Member Posts: 372
    Have you tried making a copy of the missile actor prototype and putting the bullet image into it? Or recreating the bullet actor from scratch?

    If that works fine, there may be something corrupted in your bullet actor. I've encountered some strange and inconsistent behavior with actors that is usually fixed by recreating them from scratch.

    - Jeff
  • j1knight5j1knight5 Member Posts: 4
    I'm going to try recreating the bullet actor and see if that solves the problem, but it definitely sounds like something getting corrupted. I've just noticed after working on some other elements that my player actor is now encountering a similar issue in which collision is not working vs. certain actors as well (the same balloon types, actually!).

    If it is indeed a corruption issue, I wonder where it's coming from and how to prevent it..

    Updates to follow..

    - JCB
  • j1knight5j1knight5 Member Posts: 4
    Just recreated the actors from scratch and still no luck...very bizarre behavior. It almost seems like there's something wrong with the actor tags logic or something along those lines..

    - JCB
Sign In or Register to comment.