I have a four direction movement based system. The game is a tetris like. Still working on that. The blocks move in a grid, the blocks constantly move down. The blocks stop moving if they hit other blocks or the floor.
What I want to be able to do is to make sure that when the falling blocks hit the other blocks, the falling blocks only stop when they hit the top of the blocks already there.
There are a couple ways to do this. I think I have tried them and they don't work as I expect them too.
for block in falling
if flxg.collide block, fallen, && block.istouching down
or something or other like that.
So. Can I have a sprite constantly check it's position, and if there are other sprites of a certain type in front of it or to the side of it, don't move?