Search found 2 matches

by amisdatanomi
Tue Mar 05, 2019 7:06 am
Forum: Support and Development
Topic: problem when cheking if somethings true (making powerup)
Replies: 3
Views: 1478

Re: problem when cheking if somethings true (making powerup)

Yes, thats should happen. Oddly enough my code is still broken after that addon. Looks like i have still lot to learn. I added the full code. function love.load() gridXCount = 40 gridYCount = 30 ispowerup = false function movePowerups() local possiblePowerPositions = {} for powerX = 1, gridXCount do...
by amisdatanomi
Mon Mar 04, 2019 9:03 am
Forum: Support and Development
Topic: problem when cheking if somethings true (making powerup)
Replies: 3
Views: 1478

problem when cheking if somethings true (making powerup)

Hello! I have problem and I don't understand what I'm doing wrong. if snakeSegments[1].x == powerPosition.x and snakeSegments[1].y == powerPosition.y then movePowerups() ispowerup = true end ispowerup == true if snakeSegments[1].x == powerPosition.x and snakeSegments[1].y == powerPosition.y then mov...