Search found 2 matches

by ottohero
Sat Apr 05, 2014 5:42 pm
Forum: Support and Development
Topic: simple right/left movement doesnt work
Replies: 3
Views: 2504

Re: simple right/left movement doesnt work

Ragzouken wrote:

Code: Select all

love.graphics.draw(player.pic, player.x, player.x)
you're drawing at x,x instead of x,y
oooooh!!! :rofl: thak you so much!
by ottohero
Fri Apr 04, 2014 4:12 pm
Forum: Support and Development
Topic: simple right/left movement doesnt work
Replies: 3
Views: 2504

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 ...