46
Ask a Question / Group collides with 2 groups but only for only one is sensor
« on: September 17, 2017, 03:12:26 pm »
Hey
I'm trying to make an actor "heart". It must collide with tiles because it is affected by gravity. It also must collide with player because when hit by player it is killed and player gains one life. But, I want this to work only when player lives < max.lives. So when player's health is not full, then the "heart" should disappear, and when health is full, well, nothing should happen, heart should be still in the same place. But it doesn't because it collides with player and is being pulled in side, and it cannot be sensor because it would fall off the screen because it must collide with tile. Please help
I'm trying to make an actor "heart". It must collide with tiles because it is affected by gravity. It also must collide with player because when hit by player it is killed and player gains one life. But, I want this to work only when player lives < max.lives. So when player's health is not full, then the "heart" should disappear, and when health is full, well, nothing should happen, heart should be still in the same place. But it doesn't because it collides with player and is being pulled in side, and it cannot be sensor because it would fall off the screen because it must collide with tile. Please help