Yo that worked! thanks
Search found 4 matches
- Mon Nov 23, 2020 10:55 pm
- Forum: Support and Development
- Topic: Need help with rendering player from spritesheet correctly
- Replies: 3
- Views: 3925
- Mon Nov 23, 2020 8:13 pm
- Forum: Support and Development
- Topic: Need help with rendering player from spritesheet correctly
- Replies: 3
- Views: 3925
Need help with rendering player from spritesheet correctly
So I figured out why my character wasn't working on the levels (sometimes he'll stay on the tiles but most time he goes through them) and is that the rendering the full width of the sprite sheet where I only want it to render the one (it actually just renders the animation with one pictures at a tim...
- Thu Nov 12, 2020 5:17 pm
- Forum: Support and Development
- Topic: Can someone help me with this piece of code?
- Replies: 4
- Views: 5446
Re: Can someone help me with this piece of code?
Hi, welcome to the forums! It seems you missed to update your animation frame by frame. Try this: --load spritesheet. local imgsheet = love.graphics.newImage("sample.png") --frames variable to hold frames, currentFrame to hold our current frame. local frames = {} local currentFrame = 1 --...
- Wed Nov 11, 2020 9:53 pm
- Forum: Support and Development
- Topic: Can someone help me with this piece of code?
- Replies: 4
- Views: 5446
Can someone help me with this piece of code?
Hello guys! New to Love2D; somewhat familiar with Lua (used Pico8 for last year's Game Off). I'm using Love2D this year for Game Of 2020 and I'm pretty excited to use a language/framework I'm somewhat familiar with. I'm going through the documentation right now and I'm having some trouble. I followe...