Collision problem

Hello!
I am making an adult sidescroller game. I’m currently working on a door that should disappear when the player collects 10 ■■■■■■. You can see my current settings in the picture. With the current setup, a player can go through the door even if they don’t collect 10 ■■■■■■. I probably don’t know how to set the collision presets correctly or there is something wrong with my script. As I am a beginner, please help me. I followed this tutorial.


block everything before the limit of collection exceeds, later set the collision profile node for that object to be overlapped all

hope it helps
cheers!

1 Like

Thanks, but can you explain this more precisely… Please!

Create 2 collision profiles in the project settings > collisions.
1: DoorBlock
2: DoorOverlapper

DoorBlock independtly responsible for blocking objects pass through.
DoorOverlapper independently responsible for doing overlapping events.

Disable DoorBlock when you overlapped 10 times with DoorOverlapper, count every overlapp event if == 10 disable DoorBlock or Cange it whatever you want.


hope it helps
cheers!

c0r37py, can you explain this with pictures? Please!

if the condiiton is false repeat the function.

in collision profile node you can set your own collioin profiles.
create two profiles in projectsettings > Engine > Collision :: create new object channel

hope it helps
cheers!

c0r37py please add me to skype: slycrespo

c0r37py please write the whole process step by step. Thanks!

Please help somebody…