Search found 6 matches

by kurtss
Thu Nov 24, 2011 7:10 pm
Forum: Support and Development
Topic: Animate images?
Replies: 4
Views: 2893

Re: Animate images?

Thanks to you both! I'll try AnAL. (Sounds so wrong, I love it!)
by kurtss
Thu Nov 24, 2011 6:07 pm
Forum: Support and Development
Topic: Animate images?
Replies: 4
Views: 2893

Animate images?

So I have my code here:

http://codepad.org/fIKaTf5P

Say I wanted to animate the second and third sprites in the following image:
ivQKu.png
ivQKu.png (1.45 KiB) Viewed 313 times
How would I go about doing that?

Thanks in advance!
by kurtss
Thu Nov 24, 2011 3:36 am
Forum: Support and Development
Topic: Incorrect parameter, expected userdata
Replies: 4
Views: 2385

Re: Incorrect parameter, expected userdata

Thanks tons! Indenting helped, and now I see where I went wrong.
by kurtss
Thu Nov 24, 2011 2:30 am
Forum: Support and Development
Topic: Incorrect parameter, expected userdata
Replies: 4
Views: 2385

Incorrect parameter, expected userdata

Sorry about another topic again, here's another problem I have. Here's my love.load function: function love.load() player = { sprite = love.graphics.newImage("guy.png"), spriteBatch = love.graphics.newSpriteBatch(sprite, 3), standing = love.graphics.newQuad(0, 0, 0, 0, 20, 40), height = 40...
by kurtss
Wed Nov 23, 2011 11:37 pm
Forum: Support and Development
Topic: How to ensure the player doesn't go off screen
Replies: 2
Views: 2035

Re: How to ensure the player doesn't go off screen

Oh, wow! I didn't think of putting the up and down movements in seperate blocks. Thanks a ton!
by kurtss
Wed Nov 23, 2011 10:37 pm
Forum: Support and Development
Topic: How to ensure the player doesn't go off screen
Replies: 2
Views: 2035

How to ensure the player doesn't go off screen

I'm currently making my first game, a Pong clone. How would I make sure that the paddle doesn't go off screen? I tried an if player.y < gameHeight - 80 (gameHeight is love.graphics.getHeight()) but then the player isn't movable.

Thanks in advance!