If you press a combination of keys that equal a diagonal movement (up and right) the player can clip through walls. Any ideas on how to fix this?
Thanks CT Community!movement test2.mfa
If you press a combination of keys that equal a diagonal movement (up and right) the player can clip through walls. Any ideas on how to fix this?
Thanks CT Community!movement test2.mfa
Not quite sure why you're using Bouncing ball movement when you could use 8 Directions instead.
This will reduce your 12 conditions to just 1 and prevent the bug you describe.
If you don't your player to bounce a little when hitting walls, just turn on Stick to walls.
I've attached a fixed version that uses 8 Directions and Stick to walls that might help.
salamanderpants - You're right about the speed being wrong. Just need to increase the acceleration from 50 to 250.
Here's a new example.
salamaderpants - hadn't realized he didn't want diagonal movement! Yes easy to fix by changing the Directions to only include up, down, left & right in the Active's Properties > Movement > Directions (just above Initial direction)
Attached a version with this fix.
Many thanks AyreGuitar and salamanderpants, you've really helped me in building my first real game. The Clickteam community is really the best out there for new developers. I've got inventory and a weight system completed, this game could really shape up to be awesome! Thanks again!