Search found 11 matches

by CagedWalrus
Sun Feb 24, 2013 4:42 pm
Forum: General
Topic: Animation Smoothness
Replies: 7
Views: 2724

Re: Animation Smoothness

That did the job. Thank you for the info!
by CagedWalrus
Sun Feb 24, 2013 3:23 pm
Forum: General
Topic: Animation Smoothness
Replies: 7
Views: 2724

Re: Animation Smoothness

When you are referring to origin coordinates, do you mean the origin offset (in love.graphics.drawq)? Since the width and height change, I tried getting the variable directly from the table, but it kept returning nil (attempting to perform arithmetic on a nil value). I'm fairly new to Lua, would you...
by CagedWalrus
Sun Feb 24, 2013 4:21 am
Forum: General
Topic: Animation Smoothness
Replies: 7
Views: 2724

Re: Animation Smoothness

I went ahead and reduced the image size. It's still not within the parameters for PO2, but I decided to play around with these sprites after I read that it was no longer an issue.

Also, this is an older piece of code, but it highlights the issue more clearly than other examples I could find.
by CagedWalrus
Sun Feb 24, 2013 1:06 am
Forum: General
Topic: Animation Smoothness
Replies: 7
Views: 2724

Animation Smoothness

Issue I've been playing around with sprite animation for the past day or two, and today I encountered an issue dealing with animation smoothness. I've attached an example of what I mean in to this post, for reference. Basically, when moving left the animation is very smooth, but when moving right t...
by CagedWalrus
Sun Feb 24, 2013 12:13 am
Forum: General
Topic: Advice on code optimization and bug issue
Replies: 7
Views: 3066

Re: Advice on code optimization and bug issue

I just got it installed and running; works great. Thanks for the suggestion!
by CagedWalrus
Sat Feb 23, 2013 11:11 pm
Forum: General
Topic: Mirroring Sprites (Using Quads)
Replies: 4
Views: 3140

Re: Mirroring Sprites (Using Quads)

Awesome, thank you for the reply. I have it working properly at the moment, but now I'm having a strange issue with animation smoothness.
by CagedWalrus
Sat Feb 23, 2013 9:36 pm
Forum: General
Topic: Mirroring Sprites (Using Quads)
Replies: 4
Views: 3140

Re: Mirroring Sprites (Using Quads)

Great, thank you for a quick response! If I'm mirroring the original image, does this require me to also put in a number for the offset? I'm trying to think about how this would look inside the draw function. I suppose it could look something like this: function love.draw() love.graphics.drawq(img, ...
by CagedWalrus
Sat Feb 23, 2013 8:57 pm
Forum: General
Topic: Mirroring Sprites (Using Quads)
Replies: 4
Views: 3140

Mirroring Sprites (Using Quads)

Hello, I have a really quick question in regards to Quads. Is it possible to mirror an image, that the quad is referencing (a sprite sheet, for instance), on the fly? Say, for instance, when you are pressing "right" it uses the reference image, but when you press "left" it mirrors the reference imag...
by CagedWalrus
Fri Feb 22, 2013 2:49 am
Forum: General
Topic: Advice on code optimization and bug issue
Replies: 7
Views: 3066

Re: Advice on code optimization and bug issue

Thanks for the cogent reply. I think you've sold me on the idea. I'll give some of those libraries mentioned above a whirl; looking forward to it, actually!

Also, just a quick side question, seeing as how you mentioned the .ogg files earlier. Can you recommend a good converter?

Thanks!
by CagedWalrus
Fri Feb 22, 2013 1:23 am
Forum: General
Topic: Advice on code optimization and bug issue
Replies: 7
Views: 3066

Re: Advice on code optimization and bug issue

Awesome! Thank you both for the advice. I made the modifications to the update function, and also created a delta_x variable in the keypressed function. Saved myself a lot of code, and I learned something useful! Taehl, I see that you suggested using TLbind. I've also seen many people suggest using ...