Hi guys, I'm strugling with something.
I'm testing and learning how to make a type of puzzle for my game (an oldshcool 8 directions rpg game). The thing is: I need to "kick" a block to one of the 4 directions (Up or Down or Right or Left), it will keep going until it hits the wall. When it hits, it stops, so I can kick to another direction, until it arrives at the objective area. The block only stops when it hits a wall.
What I did: Bullet behavior on the block i need to kick, the angle of motion is set by the direction i'm pressing on the keyboard, the Enable of Bullet is set when I click space bar and the characher is on collision with the block. Bullet is set to Disabled when it collides the wall. And then comes the problem, when it collides the wall, the block gets a litle trought the wall, but just some pixels. (As shown on IMG1).
IMG1
If i kick right, it collides with the wrong wall. (As shown on IMG2).
IMG2
What i need: A way to make one object dont get inside the other. I tried a few things and couldnt find any solution.
I can give more details if you guys need it.
Thanks and sorry about my bad english, hope you understand.