Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on June 13, 2014, 01:33:01 AM

Title: Help! Shooting 2d projectiles/bullets go through walls. [SOLVED]
Post by: coffeeANDsoda on June 13, 2014, 01:33:01 AM
Going by recent official playmaker video tutorials on making a shooting game, I used the same actions for a 2d game. Problem is when my character shoots, the object/prefab goes through objects.

How do I fix that?
Title: Re: Help! Shooting 2d projectiles/bullets go through walls.
Post by: coffeeANDsoda on June 14, 2014, 12:41:38 AM
This video BTW.

Title: Re: Help! Shooting 2d projectiles/bullets go through walls.
Post by: ghost010 on June 15, 2014, 05:15:03 PM
Stupid question but... do they both have a collider? if one of them doesnt,it will go trough.
Title: Re: Help! Shooting 2d projectiles/bullets go through walls.
Post by: coffeeANDsoda on June 16, 2014, 09:04:47 PM
Stupid question but... do they both have a collider? if one of them doesnt,it will go trough.

I see. Yes there is. Why? Does if have to do with triggers? Or should I just have the mesh instead of a invisible cube?
Title: Re: Help! Shooting 2d projectiles/bullets go through walls.
Post by: ghost010 on June 17, 2014, 08:04:55 AM
If both have a collider..than they should not be able to go trough...
If you want something to get destroyed,you probably need to call/look for collider hit.

The collider needs to be on the main object that you are shooting(no child).

Apart from that,i cant really help unles we ccan see what you have set up.
Title: Re: Help! Shooting 2d projectiles/bullets go through walls.
Post by: coffeeANDsoda on June 17, 2014, 08:58:03 PM
Works now, how I solved was to parent or put the image quad inside of a invisible box.