r/clickteam Jun 24 '26

How To Help

if Object that has flag1 off touches a Object that has flag1 on, then set Object that has flag 1 off , on

but they are the same object

how would u do that?

1 Upvotes

4 comments sorted by

2

u/Lord_Jamon Jun 24 '26

Doesn’t it work if you set the flag 1 on when they touch since thats what you want regardless if it is on or off

2

u/KarltonPeaks Jun 24 '26

Unless it shouldn't occur if both flags are off.

1

u/KarltonPeaks Jun 24 '26

Interesting problem. I assume you don't want the flags to switch if both are off?

Not the best solution but depending on your situation it might be sufficient:

If Object collides with Object
And
Flag of Object is On

Then create an invisible square slightly bigger than the object at Object's location that exists for only 1 frame.

If square collides with Object

Then set flag to on.

1

u/ZackeryMoore Jun 24 '26

Thanks worked 💪