Search found 23 matches
- Sat Feb 21, 2009 2:52 pm
- Forum: Support and Development
- Topic: newBody() *EDIT* And Collisions! *EDIT* And destroy()!
- Replies: 17
- Views: 12074
Re: newBody() *EDIT* And Collisions!
Latest attempt, to no prevail. The ship still carries on drifting into nowhere. Could my keyrelease function perhaps not be working correctly? function keypressed(key) if key == love.key_left and level_one == 1 then player:setVelocity(-5000, 0) player:setDamping(0) end if key == love.key_right and l...
- Sat Feb 21, 2009 2:09 pm
- Forum: Support and Development
- Topic: newBody() *EDIT* And Collisions! *EDIT* And destroy()!
- Replies: 17
- Views: 12074
Re: newBody() *EDIT* And Collisions!
Colisions now work! Or they are atleast detected - which I can work from - I just have a bit of an issue with the new method of making my ships move - it works ok (though the numbers are strange to work with :P I've implemented this function keypressed(key) if key == love.key_left and canmoveleft ==...
- Sat Feb 21, 2009 11:46 am
- Forum: Support and Development
- Topic: newBody() *EDIT* And Collisions! *EDIT* And destroy()!
- Replies: 17
- Views: 12074
Re: newBody()
Doh! Another silly mistake on my part - thanks very much for pointing that out to me. EDIT: I have a more 'Collision' based issue that I will just add to this thread. I have set up my world - it all runs ok with no errors. I use a 'body:setX(body:getX + 5)' on keyDown.love.key_right etc to move my b...
- Sat Feb 21, 2009 11:34 am
- Forum: Support and Development
- Topic: newBody() *EDIT* And Collisions! *EDIT* And destroy()!
- Replies: 17
- Views: 12074
newBody() *EDIT* And Collisions! *EDIT* And destroy()!
Can anybody see any reason for this not to work? I'm certain it's just another silly rookie error on my part. But I get No matching function for overloaded 'newBody()' it refers to the second newBody(). function load() world = love.physics.newWorld(800, 500) player = love.physics.newBody(world, arwi...
- Sat Feb 21, 2009 10:25 am
- Forum: Support and Development
- Topic: newMusic problem
- Replies: 8
- Views: 4906
Re: newMusic problem
Just as Skofo said - 'Music' files can only be in MP3, OGG, MIDI, XM, MOD and only one 'Music' file can play at a time, and 'Sound' files can be WAVE, OGG, AIFF, RIFF and VOC and you can have 8 (I believe) playing at one time. You should also be careful as to what Bitrate and Frequency you set your ...
- Fri Feb 20, 2009 4:56 pm
- Forum: Support and Development
- Topic: script help
- Replies: 3
- Views: 2038
Re: script help
It's quite apparent to me that you are quite young hellfiresage. Programming games is quite honestly not an easy task at all - and LOVE is perhaps the easiest to use API I have come across. There is no way in which anyone on this forum could say 'Just use this code here' as: 1) The one in need of he...
- Thu Feb 19, 2009 4:13 pm
- Forum: Support and Development
- Topic: Time Based Events?
- Replies: 3
- Views: 1915
Re: Time Based Events?
I do not fully understand the math.abs function - to my knowledge that converts negative numbers into positive does it not? How do I use this feature to round the number to the nearest x.xx decimal place? EDIT: math.round = function(x) return math.floor(x + 0.5) end function update(dt) math.round(le...
- Thu Feb 19, 2009 2:23 pm
- Forum: Support and Development
- Topic: Time Based Events?
- Replies: 3
- Views: 1915
Time Based Events?
EDIT: Sorry to completely changed my thread (incase anybody read the original) My new problem is this. function update(dt) level_one_time = level_one_time + 0.01 arwing_engine:update(dt) arwing_engine2:update(dt) arwing_engine3:update(dt) space_bg_y = space_bg_y + 5 love.timer.sleep(10) end It all w...
- Thu Feb 19, 2009 12:17 pm
- Forum: Support and Development
- Topic: setVolume() question
- Replies: 3
- Views: 1947
Re: setVolume() question
In that case I think I'll just incorporate a 'Master Volume' option, thank you very much for the info.
- Wed Feb 18, 2009 12:06 pm
- Forum: Support and Development
- Topic: setVolume() question
- Replies: 3
- Views: 1947
setVolume() question
Hello again, I understand the usage of the love.audio.setVolume(0.5) command - however I am wondering if there is a way to set the volume for each individual sound played, let me explain. I have defined 3 variables. music_vol = 1.0 voice_vol = 1.0 fx_vol = 1.0 And then defined my sounds. splashsong ...