I have a rain system going on, if it hits entities or the grond, the rain “explodes”. It works perfectly fine on the ground, which is part of a tilemap.
However, when I try to make it pop on entities which have the same x as the ground (they are blocks you can activate, hence not having them part of the ground), then either the rain pops too early or too late.
If I use
collide("dynamic", x, y + 1)
or
collide("dynamic", x, y + 2)
then it hits too late.
if I use
collide("dynamic", x, y + 3)
then it hits too early.
However to hit the ground, I use
collide("ground", x, y + 1)
so why shouldn’t
collide("dynamic", x, y + 1)
work? Why does it still hit too late even if I up the number to 2? It doesn’t even hit a bit earlier, it hits the exact same spot as +1, it’s as if +1 or +2 doesn’t make a difference, only when I set it to +3, then it actually changes (but then it’s too much).
TL; DR
collide(“dynamic”, x, y + 0, 1 or 2) = rain drop hits 2 pixels BELOW the dynamic block, collide(“dynamic”, x, y + 3) = rain drop hits 2 pixels ABOVE the dynamic block,