Ouch, that one hurted me, I kind leaved you hanged sorry but I was expecting first that someone with more experience with that kind of map tiling like the helpful Robin or Kikito (that "invented" the tutorial/system you following) give their incomparable help. My fault but seems Sebast is helping much better than I probably could give.qrux wrote:bump?
Collision not working
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Collision not working
Re: Collision not working
Haha, it's okaycoffee wrote:Ouch, that one hurted me, I kind leaved you hanged sorry but I was expecting first that someone with more experience with that kind of map tiling like the helpful Robin or Kikito (that "invented" the tutorial/system you following) give their incomparable help. My fault but seems Sebast is helping much better than I probably could give.qrux wrote:bump?
Re: Collision not working
it's nice you be doing progress. just a small alert/advice. it's preferable that you soon "separate" the collision code from the key detection. Is advisable that the key detection turns only it into a variable movement = "right" or something and do the collision test outside the key routine. That's because the player movement can need do another checks first before move (like for example check if at right there is an obstacle that can be pushed away so you will not move first).
Code: Select all
love.keyboard.isDown("d","right") and TileTable[rightTileY][rightTileX] == 1 and TileTable[rightTileY+1][rightTileX] == 1
Re: Collision not working
Sorry for this bump, but i really need a clue on thissebast wrote:
Ah, i see! I will try to implement itcoffee wrote:it's nice you be doing progress. just a small alert/advice. it's preferable that you soon "separate" the collision code from the key detection. Is advisable that the key detection turns only it into a variable movement = "right" or something and do the collision test outside the key routine. That's because the player movement can need do another checks first before move (like for example check if at right there is an obstacle that can be pushed away so you will not move first).Code: Select all
love.keyboard.isDown("d","right") and TileTable[rightTileY][rightTileX] == 1 and TileTable[rightTileY+1][rightTileX] == 1
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest