Some interesting finds about overlap and collide
The_Gamesalad_Guru
Member Posts: 9,922
Okay so maybe I never knew this and maybe because I tend not to have lots of layers in a project so maybe I never ran into this.
I found that when actors are on other layers the collide behavior works across layers. I just had an issue with the rule condition OVERLAP AND COLLIDE and found that if the two actors are not on the same layer the condition doesn't fire. Is this how it's always been? As I said usually if I have walls I will put them in a bottom layer out of the way and have a layer for the rest so I may have just never had this situation before.
I found that when actors are on other layers the collide behavior works across layers. I just had an issue with the rule condition OVERLAP AND COLLIDE and found that if the two actors are not on the same layer the condition doesn't fire. Is this how it's always been? As I said usually if I have walls I will put them in a bottom layer out of the way and have a layer for the rest so I may have just never had this situation before.
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Collision should work across layers if set properly..
Roy.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Lump Apps and My Assets
Roy.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
make a copy and start comment out rules until youll find the issue, my guess is that it related to scrollable/none scrollable layers..
Roy.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Lump Apps and My Assets
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Actors are run in order from bottom to top, and actions within actors from top to bottom. Just wanted to throw this out there as you mentioned you were moving actors between layers.
Lump Apps and My Assets
@ludwigheijden actually this is a rare project where I am using gravity so the actor was falling straight down and there is an actor at the bottom and a simple rule when overlap and collide destroy actor. It worked for a few previews and then stopped all of a sudden. So I put in the debug behavior to see if the rule was firing and it wasn't. I trashed the rule and made a new one and still nothing. Then I changed out the actor on the floor and redid the rule and still nothing. I thought after scratching my head maybe it's in the lower layer and when I moved the floor actor to the same layer as the ball it started working. Not sure if the ball actor was corrupted somehow or what. I know I've had actors just get corrupted. I suspect it was something like that something got corrupted on the backend and moving that actor somehow reestablished the disconnect.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
www.marcosriffel.com
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS