Hello,
I am making a game currently and there's something wrong with the collision detection script:
(click for full size)
The script is supposed to stop the infection at the wall, at the border and at the player.
But when the player is supposed to stop the infection, the detection doesn't work.
When the player is not blocking the infection, everything works well. But when the player SHOULD be blocking it, the infection even goes through the wall!
~meew0
Offline
wpd wrote:
I don't see anything wrong with the scripts. You could download perfect platformer base and change around the costumes to make it like your game.
*cough* This game isn't a platformer *cough*
Offline
Well, the ifs are problematic because you test wall and border and simutaneously only x or only y of the player. This ends with ridiculous behaviour. You should have ifs that only test the border, than ifs that only test the walls, then if that only test a player (but then, both x and y).
Offline
deerel wrote:
Well, the ifs are problematic because you test wall and border and simutaneously only x or only y of the player. This ends with ridiculous behaviour. You should have ifs that only test the border, than ifs that only test the walls, then if that only test a player (but then, both x and y).
The weird thing is, that without the player detection, all works perfectly. So it can't be this.
Offline