Search found 10 matches

by TheDeskPop
Sun Dec 30, 2012 4:39 pm
Forum: Support and Development
Topic: mousepressed vs. mouse.isDown PowerUp
Replies: 2
Views: 1607

Re: mousepressed vs. mouse.isDown PowerUp

That is close to what I need. However the numbers would be a number so that the PowerUp does not last forever. I need it to somehow go away after being used. The reason I mentioned mouse.isDown is because I want the user to be able to hold the mouse button down for continuous fire after killing the ...
by TheDeskPop
Sun Dec 30, 2012 8:18 am
Forum: Support and Development
Topic: mousepressed vs. mouse.isDown PowerUp
Replies: 2
Views: 1607

mousepressed vs. mouse.isDown PowerUp

Scenario Normal: When a user hits an entity: function love.mousepressed( x, y, button ) if button == "l" then ents.shoot(x, y) end Scenario wished for: For specific entity when killed or hit I wish to grant a power up. I think this will come from love.mouse.isDown ("l") with a ra...
by TheDeskPop
Sun Dec 30, 2012 8:09 am
Forum: General
Topic: How would Love be for an MMO?
Replies: 12
Views: 6539

Re: How would Love be for an MMO?

It's not much about if LÖVE can handle a MMO, and more about if you can handle an MMO. Exactly what I wanted to say. An MMO is like the Notre Dame . How are you going to build that? Building a regular house is hard enough, let alone a huge cathedral, especially if you're not the catholic church or ...
by TheDeskPop
Sun Dec 30, 2012 8:01 am
Forum: Support and Development
Topic: What are 'nil' errors?
Replies: 12
Views: 7759

Re: What are 'nil' errors?

I've decided that I'm going to watch a youtube series to just create a much better foundation of knowledge, rather than figuring out issues one by one with barely any idea of what I'm doing. I am relatively new here as well. Starting with a tutorial works and is helpful. There are some recommended ...
by TheDeskPop
Sun Dec 30, 2012 6:13 am
Forum: Support and Development
Topic: What are 'nil' errors?
Replies: 12
Views: 7759

Re: What are 'nil' errors?

A couple things... Your love.draw is the problem. You have love.graphics.drawq -- Also love.graphics.draw(characters.png, 50, 50) will not work it should look like this: At line 64 in the code it tells you that 'characters' is a nil value. You need to edit it to this: function love.draw() love.graph...
by TheDeskPop
Sun Dec 30, 2012 3:04 am
Forum: Support and Development
Topic: [Solved] Menu - Button Hover Sound Code
Replies: 7
Views: 4899

Re: Menu - Button Hover Sound Code

That worked Santos! The only line of code I had to add was in love.update(dt) Suggested: function love.update(dt) local x = love.mouse.getX( ) local y = love.mouse.getY( ) for k, v in pairs(buttons) do if insideBox(x, y, v.x, v.y, v.w, v.h) then if not v.active then playMenuSound() v.active = true e...
by TheDeskPop
Sat Dec 29, 2012 7:43 pm
Forum: Support and Development
Topic: [Solved] Menu - Button Hover Sound Code
Replies: 7
Views: 4899

Re: Menu - Button Hover Sound Code

Some things to note: The buttons could have an active variable which is true if the button is currently hovered over or false otherwise. drawButton could take the entire button table as an argument, and use the active table entry to decide which image to use. Rewinding sources before playing them m...
by TheDeskPop
Fri Dec 28, 2012 10:07 pm
Forum: Support and Development
Topic: [Solved] Menu - Button Hover Sound Code
Replies: 7
Views: 4899

Re: Menu - Button Hover Sound Code

I meant you should do it like this. if not once and ins then love.audio.play(src2) once = true elseif once and not ins then once = false end I tried it this way and it does the same thing. Doing it this way repeats the sound. This is where I am leaning towards I did not create this correctly. I wil...
by TheDeskPop
Fri Dec 28, 2012 8:02 pm
Forum: Support and Development
Topic: [Solved] Menu - Button Hover Sound Code
Replies: 7
Views: 4899

Re: Menu - Button Hover Sound Code

Well, thanks boolsheet! This got me one step closer! Now it plays the sound just once but upon re-hovering, it does not play the sound again. This now the code that makes the above possible. if not once and (ins) then love.audio.play(src2) once = true elseif not once and (ins) then once = false end ...
by TheDeskPop
Fri Dec 28, 2012 7:38 pm
Forum: Support and Development
Topic: [Solved] Menu - Button Hover Sound Code
Replies: 7
Views: 4899

[Solved] Menu - Button Hover Sound Code

Hello I have a question and might need to reformat some of what I have done. I am in need of some assistance. What I have is a menu and 2 buttons that upon hover state I wish to play audio. I have it so that the audio plays. However, it is on somewhat of a default loop. See the problem here is that ...