Anixias
Member
I've been working this game for a little while and while I've gotten my graphics to a point where I love them, I just thought about a player-movement flaw. The game is an infinite random world in a survival aspect. Here is a screenshot:
How should I handle the player attempting to walk down a slope, but up-right/up-left?
Like, if they attempt to walk behind something to where the camera would no longer see them?
I'm using chunks and vertex buffers, so all of those tiles are below the player's depth, which causes the player to draw over the whole world, even if he is behind the map. I would rather not mess with occlusion.
Should I just restrict the player from walking behind anything? Thanks.
EDIT:
Also, how would I handle hold A/D (W,S, and diagonal combos are easy)? Like, would it count as up-right/left if there is a higher block? I just don't know.
How should I handle the player attempting to walk down a slope, but up-right/up-left?
Like, if they attempt to walk behind something to where the camera would no longer see them?
I'm using chunks and vertex buffers, so all of those tiles are below the player's depth, which causes the player to draw over the whole world, even if he is behind the map. I would rather not mess with occlusion.
Should I just restrict the player from walking behind anything? Thanks.
EDIT:
Also, how would I handle hold A/D (W,S, and diagonal combos are easy)? Like, would it count as up-right/left if there is a higher block? I just don't know.
Last edited: