I have my 8th directional character as always---->Center Display at (0,0) from Character. Now my problem is now would I get rid of the screen kind of shaking everytime i hit a wall or an object?
Printable View
I have my 8th directional character as always---->Center Display at (0,0) from Character. Now my problem is now would I get rid of the screen kind of shaking everytime i hit a wall or an object?
The screen is shaking because your character is. What code are you using to stop the character when you hit a wall?
EDIT: Alternatively, if your character is animated then his collision area could be changing from frame to frame. Try switching to box collision instead.
Center the screen on an invisible Active Object, not on the player character. Make the Invisible follow the player if the distance to the player is greater than 50 pixel (try other numbers to see what fits best).
This way you avoid a shaking screen at the slightest change of the player's position.
Dynasoft I have it pretty simple.
Collision between Player and Wall------> Stop Player
Can you tell me more about this box collision because my guy is animated because he has walking animation while hitting the wall.
thanks
In the properties panel for your guy, there should be a "use fine collision" that you can uncheck to get box collision. For it to work properly all your guy's frames should be the same size, but I'm fairly sure MMF forces that anyway.
The alternative is to have a hidden box of exactly the shape you want your collision, and do your movement on that. Then just set the "visible" animating object to always the hidden object's location, and make sure the animations and directions are all set correctly. This is the harder solution, but generally more flexible.