Search found 51 matches

by randy0428
Fri Feb 10, 2017 9:43 pm
Forum: General
Topic: how to tell if audio is playing or paused
Replies: 8
Views: 6355

Re: how to tell if audio is playing or paused

Nevermind. I found the source:isPlaying() function.
Sorry I didn't look more thoroughly before I posted.
by randy0428
Fri Feb 10, 2017 9:30 pm
Forum: General
Topic: how to tell if audio is playing or paused
Replies: 8
Views: 6355

how to tell if audio is playing or paused

Is there such a thing as love.audio.isPlaying (or something that would tell if the audio is playing) or love.audio.isPaused (or something that would tell if the audio is paused)? I want to have a single play/pause button that toggles between playing and paused. The code would be something like: func...
by randy0428
Wed Feb 08, 2017 10:52 pm
Forum: General
Topic: suddenly game doesn't work
Replies: 14
Views: 4714

Re: suddenly game doesn't work

I usually work in Linux (Antergos, an Arch derivative). My package manager indicates I have love 0.10.2-1. A few days ago, my system upgraded lua to version 5.3.4-1. I didn't have the problem as described in my original post before the upgrade and when I reverted my system back to lua 5.3.3-2, the p...
by randy0428
Wed Feb 08, 2017 6:19 pm
Forum: General
Topic: suddenly game doesn't work
Replies: 14
Views: 4714

Re: suddenly game doesn't work

It appears my suspicion was correct. I downgraded from lua 5.3.4-1 back to lua 5.3.3-2 and the games worked as they had before. I don't know what changes were made that caused the problems, but I'm going to finish this new game in love/lua 5.3.3-2 before I reapply the upgrade.
by randy0428
Wed Feb 08, 2017 3:33 pm
Forum: General
Topic: suddenly game doesn't work
Replies: 14
Views: 4714

Re: suddenly game doesn't work

OK. I can't see how to attach files to a reply, so I've uploaded the projects to my domain. The zipped projects can be downloaded from: http://rpallen.com.br/washington.zip http://rpallen.com.br/my_insects.zip and working versions of the games can be downloaded at: http://rpallen.com.br/WashingtonDC...
by randy0428
Wed Feb 08, 2017 2:07 pm
Forum: General
Topic: suddenly game doesn't work
Replies: 14
Views: 4714

suddenly game doesn't work

I have two games I completed recently and both of them were working fine a few days ago. I opened one to look at some code I want to use in a new game. I also tried running the game but it didn't work normally. I ran the other game and it is doing essentially the same unexpected behavior which it di...
by randy0428
Tue Jan 24, 2017 10:40 am
Forum: General
Topic: Do I need to set color to white before printf(coloredtext)?
Replies: 3
Views: 2352

Resolved: Do I need to set color to white before printf(coloredtext)?

Thanks, slime. I'd like to suggest a note be added to page https://love2d.org/wiki/love.graphics.printf explaining this. It could be something like I've shown below. Thanks again. Arguments table coloredtext (Note: Set the color to 255, 255, 255 before using colored text in a variable because the co...
by randy0428
Tue Jan 24, 2017 12:45 am
Forum: General
Topic: Do I need to set color to white before printf(coloredtext)?
Replies: 3
Views: 2352

Do I need to set color to white before printf(coloredtext)?

I have a program which is working as I want it to but I'm not sure why. I have the function below. (the entire project is also attached.) The "textoImprimido" variable in the printf line is defined in another function as "textoImprimido = {Cores.azulMaisEscuro, textoCombinado, Cores.a...
by randy0428
Thu Jan 12, 2017 7:58 pm
Forum: General
Topic: problems with game state and clicking mouse
Replies: 2
Views: 1814

Re: problems with game state and clicking mouse

Thank you, thank you, thank you, 0x72! Such a simple solution! I just added a "return" line immediately before the "end" of each of the "if" sections for the "splash" game state. And this solved both problems As you said, the 2nd problem had the same cause as ...
by randy0428
Thu Jan 12, 2017 9:32 am
Forum: General
Topic: problems with game state and clicking mouse
Replies: 2
Views: 1814

problems with game state and clicking mouse

This post is about 2 problems I’m having with a game I’m developing. I have attached the project directory as a .zip file. I am an ESL teacher (English as a Second Language) in Brazil teaching English to native Portuguese speakers. This game is to be a listening exercise for the students. They will ...