I would like some help with code

I’ve been using this for a while to keep my towers and enemies locked in a row. but I need to lock an object that is two tiles tall. Is there a way to format this?

1 Like

Hey, I think this is happening because the center of the object changed.
Here is a possible solution for your problem:

Expression used:


Hope this helps :slight_smile:


It’s like half on the right spot, I’m sure it’s just a number change, i’m just not sure which numbers need changed, and to what.

Could you message me the link so I can test whats wrong?

I found an alternate fix, but here it is if you still wanna find it.


Hmm weird, I don’t know what’s wrong with it, there could be another logic in conflict with this section.
Anyway, I’m glad you sorted it all out.