Help with lever code

image
Hey guys Im trying to make it so this code can flick a lever when my sprite is beneath the lever block. I feel like im onto something but its not working. Thanks!

1 Like

Hmmm that’s interesting. I recreated a similar case as yours and it seems the equals block doesn’t work properly when using tilemap locaiton blocks. When I separated the locations into columns and rows, it works though so maybe you should do that for now until a better solution is found.

Here's the alternate comparison code that worked for me:

tempSolution