I have problems with collision with tile map. If player jump onto platform under "right" (or wrong, depending on point of view) angle, it ends up inside wall until he jump again. Not critical bug (player don't get "really" stuck or whatever), but it dpesn't look nice. To solve this issue, I wrote following snippet:
if !no_ground?(@player.middle_x,@player.bottom) then
@player.y -= (@player.middle_y / @tileset.tilesize).floor
(found at line 41 in code/Scene_Map.rb, commented out), but when it is enabled, it works (albeit with sliding instead of instant appear on top of tile), but character jumps around like he has an epileptic surge or something.
Try using some loop to make it instant.
while !no_ground?(@player.middle_x,@player.y+31) do
@player.y -= 1
It works, but bypasses @player.bottom, because it's not updating inside the loop. Just change it to your style of coding.
That for one thing. But how to make it not jump randomly when it shouldn't.
//edit: Nevermind, got it working, though it required bit more code and I'd rather not go with details.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill