Bouncing off obstacles with 8-dir movement
Is it possible to stop player objects repeatedly bouncing against obstacles when you move into them?
I'm using the built-in 8-direction movement as it's easier (I think) than doing custom movements for 4 players - plus I'm building in XNA, so objects are limited and events and objects need to be kept to a minimum. Also, I'm taking advantage of conditions such as set maximum speeds, etc - so I'd like to keep these in if possible.
I've tried using the property 'stick to obstacles', but as soon as you touch a wall, you literally get glued to it unless you move the controller in the opposite direction.
Does anyone have any good methods to resolve this without having to build a custom movement from the ground up.
Bouncing off obstacles with 8-dir movement
Not really, sadly the "obstacle jiggle" is something which comes with the 8 direction movement. You could use this as an opportunity to learn about X/Y positioning, markers and fast loops though. Check to see if there are any examples around for custom 8-direction movements,