sailingboy wrote:I have similar problem like this:Jdog wrote:Second, and this is more related to MOC, my character movement works on WASD - collisions work unless I hold down 2 keys at once and move diagonally (for instance, W and A) - is there any way to prevent this without messy if statements?
Maybe someone know how solve it?
btw Thanks very much for these tools!
I use WASD, too, and move diagonally, and it works fine
You dont tell us when or where you test your collisions, i assume you do in every key check of those 4 keys - but if you want us to help you you need to tell us more because no one here (i think) is a wizard and can see your code thru some kinda fancy orb
what you might want to do is, moving your character with a vector, which can be a bit complicated cause you might need a lot of manipulations on that, or just check the collision outside your input function, if you check it in there at all (as i said, no magicians here)