Search found 20 matches

by adrywalsh
Tue Jun 22, 2010 3:19 am
Forum: General
Topic: Having trouble getting a program running
Replies: 34
Views: 2278

Re: Having trouble getting a program running

I'm thinking nested for loops that check every term against every term?
A little wasteful if done poorly, but should work.

Guess i'll eat those cookies mahself!
by adrywalsh
Tue Jun 22, 2010 3:12 am
Forum: General
Topic: Having trouble getting a program running
Replies: 34
Views: 2278

Re: Having trouble getting a program running

How about an easy way to make sure all elements in an array are unequal?

Cookies in the oven.
by adrywalsh
Tue Jun 22, 2010 2:51 am
Forum: General
Topic: Having trouble getting a program running
Replies: 34
Views: 2278

Re: Having trouble getting a program running

Resolved.

I changed "main" to "update"

Cookies for all!
by adrywalsh
Mon Jun 21, 2010 8:36 am
Forum: General
Topic: Having trouble getting a program running
Replies: 34
Views: 2278

Having trouble getting a program running

I'm trying to write a program that simulates a 7 card hand dealt randomly, and putting output to the console if the hand was good or bad, but I'm not getting anywhere at all. What is wrong? I'm not getting an error, just a blank console. function love.main() while total < 100 do while rand[1] == ran...
by adrywalsh
Tue Apr 20, 2010 6:22 am
Forum: Support and Development
Topic: Sounds don't play, but only sometimes
Replies: 5
Views: 766

Re: Sounds don't play, but only sometimes

or get Audacity and only use .ogg files.
I've had way more success getting my sounds to rapid fire with ogg over wav.
by adrywalsh
Sat Apr 10, 2010 6:52 pm
Forum: Support and Development
Topic: New to Lua and love
Replies: 3
Views: 1005

Re: New to Lua and love

I would start by returning to the wiki page and clicking on the link for love.audio. From here you should learn how to initialize/preload whatever sounds you want outside of your main loop using newSource. Then I would totally memorize love.audio.play( ____ ) because it's just that easy. Best of luc...
by adrywalsh
Tue Apr 06, 2010 7:18 am
Forum: Support and Development
Topic: mouse position
Replies: 1
Views: 327

mouse position

function love.mousereleased (x,y,button) ... love.mouse.setVisible(false) ... causes my mouse's position to become 0,0 for one frame upon moving the mouse for the first time after this is called. What is the best way to get around this? In my program my player is controlled by the position of the m...
by adrywalsh
Tue Mar 23, 2010 4:22 am
Forum: Support and Development
Topic: Love bgmusic
Replies: 1
Views: 356

Re: Love bgmusic

Another fun fact:
If I do not press "m" before another sound occurs, the music will not start.
by adrywalsh
Tue Mar 23, 2010 3:48 am
Forum: Support and Development
Topic: Love bgmusic
Replies: 1
Views: 356

Love bgmusic

I'm trying to make any sensible way of playing background music with the option of letting the user stop it in-game. if key == "m" then love.audio.play(bgmusic) end This above works fine for me. If I press "m" then the music starts, and it is fantastic. However if I make any attempt to have a functi...
by adrywalsh
Thu Mar 04, 2010 5:16 am
Forum: Support and Development
Topic: Sound Effect recycle problem
Replies: 4
Views: 550

Re: Sound Effect recycle problem

noob solution, slowed down the wav, exported the ogg and got rid of the array...
wavs are broken.