Search found 7 matches
- Thu Aug 08, 2013 6:19 am
- Forum: General
- Topic: How do I check if a audio source is playing or not?
- Replies: 2
- Views: 2310
How do I check if a audio source is playing or not?
I've rummaged through the wiki. I've searched through the forums. I still don't have any solid information of how to check whether a sound is playing. I need some sort of boolean that will return true or false in accordance to a sound being played or not. I've been trying to use " Source:isPlay...
- Thu Aug 08, 2013 3:06 am
- Forum: General
- Topic: How do I Combine Keypresses?
- Replies: 8
- Views: 6428
Re: How do I Combine Keypresses?
You can do that by introducing an extra variable. function love.update(dt) if love.keyboard.isDown('r') and love.keyboard.isDown('lctrl') and not hasRespawned then hasRespawned = true -- now this chunk will not execute next frame -- do respawn code end end function love.keyreleased(key) if key == '...
- Wed Aug 07, 2013 10:39 pm
- Forum: General
- Topic: How do I Combine Keypresses?
- Replies: 8
- Views: 6428
Re: How do I Combine Keypresses?
Thanks for the input, guys, I actually discovered the " love.keypressed.isDown ", on my own, before I came back online today. Although, there are two things I want to say about it. 1. Yes, it gets the Job done! 2. It must be under love.update(dt) to work; Thus causing the callback function...
- Wed Aug 07, 2013 3:21 pm
- Forum: General
- Topic: How do I Combine Keypresses?
- Replies: 8
- Views: 6428
How do I Combine Keypresses?
To start, I have a relative understanding of "love.keyboard.isDown" as well as "love.keypressed(key, unicode)" However, what still escapes me is, how to combine key presses. For Example: lctrl + r or lctrl + click I'm sure that I am overlooking something, so if any of you can pos...
- Mon Nov 26, 2012 9:35 pm
- Forum: General
- Topic: Help Needed: Player Art and Animation
- Replies: 5
- Views: 3943
Re: Help Needed: Player Art and Animation
Oh hahaha, Thanks Nixola, that flew right past me when i was rewriting the code xD
and qaisjp thanks for the rewritten code ill test it out imeiately
and qaisjp thanks for the rewritten code ill test it out imeiately
- Mon Nov 26, 2012 12:14 am
- Forum: General
- Topic: Help Needed: Player Art and Animation
- Replies: 5
- Views: 3943
Re: Help Needed: Player Art and Animation
I've built a system similar to what you suggested(well I'm assuming so). from looking at the code, it seems like it would work, but all I've got was the player image stuck in top left corner. I've checked my spelling and checked if I place the functions in there needed places. Is there something I m...
- Sun Nov 25, 2012 4:46 am
- Forum: General
- Topic: Help Needed: Player Art and Animation
- Replies: 5
- Views: 3943
Help Needed: Player Art and Animation
To start off with, I am building a top down space shooter. No, I am not trying to remake Galactica or Asteroids, its to be more of an real time, RPG, sandboxy type game. Well, right now I am working on the player ship, and i want the ship to look the direction its heading. I have gotten the four bas...