Search found 9 matches

by michaeladair
Mon Dec 29, 2014 11:19 pm
Forum: General
Topic: What's everyone working on? (tigsource inspired)
Replies: 1796
Views: 1568563

Re: What's everyone working on? (tigsource inspired)

I've been playing around with love2d and me and my friend will most likely start working on a 2D Zelda Style mmo, we will be using bitcoin as a means of bringing money into the game, because who doesn't like bitcoin.

If anyone wants to help we could use some graphics, I may be able to tip some btc!
by michaeladair
Mon Dec 29, 2014 7:37 pm
Forum: Support and Development
Topic: Adding background music
Replies: 6
Views: 5172

Re: Adding background music

Doctory wrote:don't do dynamic.
Then what should I do instead of it? And should i have this code inside a function?
by michaeladair
Mon Dec 29, 2014 7:33 pm
Forum: Support and Development
Topic: Adding background music
Replies: 6
Views: 5172

Re: Adding background music

S0lll0s wrote:
michaeladair wrote:Basically I want to add some background music to my game.
Any help would be great, thank you.

Code: Select all

music = love.audio.newSource( 'libs/gangster paradise.mp3', 'dynamic' )
music:setLooping( true ) --so it doesnt stop
music:play()
It says that dynamic is an invalid source type...
by michaeladair
Mon Dec 29, 2014 7:24 pm
Forum: Support and Development
Topic: Adding background music
Replies: 6
Views: 5172

Adding background music

Basically I want to add some background music to my game.
I found:

Code: Select all

source = love.audio.newSource( file, type )
And

Code: Select all

love.audio.play( source )
Do I just make it like this?

Code: Select all

music = love.audio.newSource( libs/gangstersparadise, mp3 )
love.audio.play( music )
Any help would be great, thank you.
by michaeladair
Mon Dec 29, 2014 2:00 pm
Forum: Support and Development
Topic: Simple Coding Question...
Replies: 8
Views: 6103

Re: Simple Coding Question...

If those are, then as i said, from the code snippets you posted, i could not figure out the problem; sorry. Either someone else will figure it out, or just post a .love file, or a zip with all the files (including your main.lua) or something, because i feel that something's still missing from the b...
by michaeladair
Mon Dec 29, 2014 1:21 pm
Forum: Support and Development
Topic: Simple Coding Question...
Replies: 8
Views: 6103

Re: Simple Coding Question...

zorg wrote:The problem is that you're not passing those values to your load function, hence they are nil, as in, they don't exist.

Again, from what code you posted, i can not see where you call that function even.
How do I pass the values? The ip and name are passed??
by michaeladair
Mon Dec 29, 2014 11:49 am
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1066296

Re: Avatars: OBEY!

Done and done.
by michaeladair
Mon Dec 29, 2014 11:36 am
Forum: Support and Development
Topic: Simple Coding Question...
Replies: 8
Views: 6103

Re: Simple Coding Question...

The problem that I have is that it does not see the variables as numbers: ERROR states/playing.lua: 11: Bad argument #1 to 'setColor' (number expected, got nil) Line 11: love.graphics.setColor( r, g, b) Playing.lua: players = {} function onReceive(data) players = TSerial.unpack( data ) end function ...
by michaeladair
Mon Dec 29, 2014 5:16 am
Forum: Support and Development
Topic: Simple Coding Question...
Replies: 8
Views: 6103

Simple Coding Question...

So I have 3 previously defined variables by the user, r, g, and b. These are inputted by the user and should be numbers. Here is where it is called. function load( ip, name, r, g, b) -- Collider = HC( 100, on_collision ) cam = camera(vector(256, 208), 1) love.graphics.setBackgroundColor( 50, 50, 50 ...