Hey, I have a character made of 2 150px by 150px sprites and I want to move him on a grid, so I tried this:
Basically, when I push "A" or Left Arrow, I move the bottom half 150px to the left (And since the top half will be pinned to the bottom half - 150px in the Y direction, it will move the top one too)
Then I check if the bottom half is overlapping the sprite "Ground" (So it would not go trough it) and if it is, I would add 150px to the bottom half, moving it back to it's place.
The problem comes when I apply the same code to the top half, but this time it does not work...
I also tried: If Bottom Half is overlapping Ground|
or | => then Bottom Half set X to self.X + 150px
If Top Half is overlapping Ground |
But this didn't work either...
What am I doing wrong?
(Here is the capx: https://www.dropbox.com/s/b1lp1puv1i81t ... .capx?dl=0)