oooooh!!! thak you so much!Ragzouken wrote:you're drawing at x,x instead of x,yCode: Select all
love.graphics.draw(player.pic, player.x, player.x)
Search found 2 matches
- Sat Apr 05, 2014 5:42 pm
- Forum: Support and Development
- Topic: simple right/left movement doesnt work
- Replies: 3
- Views: 2679
Re: simple right/left movement doesnt work
- Fri Apr 04, 2014 4:12 pm
- Forum: Support and Development
- Topic: simple right/left movement doesnt work
- Replies: 3
- Views: 2679
simple right/left movement doesnt work
i am just learning how to do coding in love2d and lua, but when i try to make this super simple up/down/left/right movement it goes diagonally, for some reason... here's the problem code(in player.lua): player = {} player.x = 300 player.y = 300 player.speed = 10 player.health = 20 player.damage = 2 ...