Quick Engine: Theres an issue with colliding on a left wall
It's something strange that happens when, for example, the player moves to the left wall. It doesn't clip, but, looks like, i don't know how to describe it, is like when you jump below a platform. The player is bopping his head over and falling to the ground, but because the keyboard.UP and player.grounded
clause, the player is constantly jumping and falling. This happens also when the platform is a short distance between the player. OK, Ctrl+C and Ctrl+V what i said, but this time the player.grounded
clause doesn't appear.
This is all the code RELEVANT for solving this issue, and can be help-full for other projects. HOWEVER, this is just a test code, and not the final project.
MAIN
init = function()
Quick.init()
player_init()
map = Quick.addMap("map", 0, 0, 240, 160)
end
update = function()
Quick.update()
player_update()
end
draw = function()
Quick.draw()
end
PLAYER
player_init = function()
player = Quick.addSprite("icon", 0, 0, 10, 10)
end
player_update = function()
if keyboard.LEFT then player.vx = -100
elsif keyboard.RIGHT then player.vx = 100
else player.vx = 0
end
if keyboard.UP and player.grounded then
player.vy = 100
end
end
This is using vanilla Quick Engine ver. 1.1