Search found 3 matches

by ManaSV
Fri Jan 20, 2017 12:59 am
Forum: Support and Development
Topic: Keyboard events help: Frameskips
Replies: 4
Views: 2144

Re: Keyboard events help: Frameskips

You have in there condition that checks if any keys are pressed, before drawing. If you remove that check, it will draw unconditionally. Thank you , I was editing my last message when you answered again haha, I think you refer to keyPressed flag, I figured it out a moment ago and removed it, now it...
by ManaSV
Thu Jan 19, 2017 9:48 pm
Forum: Support and Development
Topic: Keyboard events help: Frameskips
Replies: 4
Views: 2144

Re: Keyboard events help: Frameskips

Kind of get it working now Some of my main.lua: function love.update(dt) player:update(grid.width,grid.heigth) end function love.draw() love.graphics.print(love.timer.getFPS()) grid:draw() player:draw() end Some of my player.lua function Player:draw() if (not self.keyDown) then love.graphics.rectang...
by ManaSV
Thu Jan 19, 2017 4:20 pm
Forum: Support and Development
Topic: Keyboard events help: Frameskips
Replies: 4
Views: 2144

Keyboard events help: Frameskips

Hello Guys, I need some help solving a problem we have with some friends I am developing (prototyping) a game with. Basically my task at the moment is basic movement to the player (at the time Im researching about input methods), what I have now is a 3x3 grid that is the board where the player is su...