I am developing a platformer sort of game in java and it requires collision detection.
if (floor.intersects(player.player)) {
mouseYpro = floor.y - 50;
}
That is code for it at the moment, later on I will use the wasd keys.
The point is, when floor and player collide player does stop but it occilates and judders up and down.
I think this could be to do with the engine/game's refresh rate (I made both).
If you could help, that'd be great,
Thanks

New Topic/Question
Reply



MultiQuote





|