Search found 6 matches
- Thu Nov 24, 2011 7:10 pm
- Forum: Support and Development
- Topic: Animate images?
- Replies: 4
- Views: 2903
Re: Animate images?
Thanks to you both! I'll try AnAL. (Sounds so wrong, I love it!)
- Thu Nov 24, 2011 6:07 pm
- Forum: Support and Development
- Topic: Animate images?
- Replies: 4
- Views: 2903
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:
How would I go about doing that?
Thanks in advance!
http://codepad.org/fIKaTf5P
Say I wanted to animate the second and third sprites in the following image:
How would I go about doing that?
Thanks in advance!
- Thu Nov 24, 2011 3:36 am
- Forum: Support and Development
- Topic: Incorrect parameter, expected userdata
- Replies: 4
- Views: 2392
Re: Incorrect parameter, expected userdata
Thanks tons! Indenting helped, and now I see where I went wrong.
- Thu Nov 24, 2011 2:30 am
- Forum: Support and Development
- Topic: Incorrect parameter, expected userdata
- Replies: 4
- Views: 2392
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...
- 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: 2037
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!
- 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: 2037
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!
Thanks in advance!