Search found 4 matches

by DjKniteX
Mon Nov 23, 2020 10:55 pm
Forum: Support and Development
Topic: Need help with rendering player from spritesheet correctly
Replies: 3
Views: 3642

Re: Need help with rendering player from spritesheet correctly

Nine Iron wrote: Mon Nov 23, 2020 8:46 pm You're scaling your image on the x axis by the image width when you're calling the new quad.
Yo that worked! thanks
by DjKniteX
Mon Nov 23, 2020 8:13 pm
Forum: Support and Development
Topic: Need help with rendering player from spritesheet correctly
Replies: 3
Views: 3642

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...
by DjKniteX
Thu Nov 12, 2020 5:17 pm
Forum: Support and Development
Topic: Can someone help me with this piece of code?
Replies: 4
Views: 5021

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 --...
by DjKniteX
Wed Nov 11, 2020 9:53 pm
Forum: Support and Development
Topic: Can someone help me with this piece of code?
Replies: 4
Views: 5021

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