playMaker

Author Topic: Through Ball Behaviour [SOLVED]  (Read 2112 times)

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Through Ball Behaviour [SOLVED]
« on: September 01, 2014, 01:29:50 PM »
Hello,

Brick Breaker game project in the process, I have a Thru Ball that goes through bricks and destroys them.

Explanation:

Normal Ball  - On Collision Enter (Works Well)
Through Ball - On Trigger Enter (Works Well by sending an event to Trigger Enable the Bricks as soon as I take the "Thru Ball" Power Up)

Problem:

I am trying to implement a "Multiple Ball" Power Up, but the problem is if one of the 3 balls is a through ball, it sends the Trigger Enable event to all Bricks so now the normal ball also becomes a thru ball.

Basically, is there any "other" technique to let the ball go through the bricks? Basically like a piercing bullet.

Thank you
« Last Edit: September 06, 2014, 01:46:49 PM by Phuzz »
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Through Ball Behaviour
« Reply #1 on: September 02, 2014, 07:54:54 AM »
Are you using rigidbodies?

Probably not.. Hmm, well you must have some check setup to bounce the ball around when it hits a brick so you should be able to just not apply the bounce off the brick with the thru ball, unless it hits something on the Wall layer.
« Last Edit: September 02, 2014, 07:58:10 AM by Lane »
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Through Ball Behaviour
« Reply #2 on: September 03, 2014, 03:14:49 AM »
I am using rigid body on the ball only the rest are just box colliders with physics materials assigned to them
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Through Ball Behaviour
« Reply #3 on: September 03, 2014, 06:59:58 AM »
Maybe change the ThruBall's layer to a layer that doesn't collide with the bricks, only the walls. Normal Ball would collide with both. Then you could have the triggers on blocks behind them that don't collide with the Normal Ball.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Through Ball Behaviour
« Reply #4 on: September 06, 2014, 01:46:21 PM »
Took me a while to get it right, but works like a charm  :) MultipleBall is back.. Thank you
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"