In my game, I have blocks that are in a line, and when you press the left or right key, only the first object should move. This is basically what I’m trying to do:
If an object is not in front of this object {
If left arrow key is pressed {
Move to the left
} else {
Move to the right
}