Search found 5 matches

by _dementia_
Tue Jan 20, 2015 11:19 pm
Forum: Support and Development
Topic: Getting the Length and Width of a Random Rectangle
Replies: 6
Views: 5886

Re: Getting the Length and Width of a Random Rectangle

Thank you for your help! I've managed to get it all stable. Still a long way to go. I'm postng an exe because that's what I have ready. If you want a .love, just yell at me!
Game.zip
(3.31 MiB) Downloaded 284 times
by _dementia_
Tue Jan 20, 2015 8:36 pm
Forum: Support and Development
Topic: Getting the Length and Width of a Random Rectangle
Replies: 6
Views: 5886

Re: Getting the Length and Width of a Random Rectangle

you really should name your variables a bit less confusingly :3 I'm really realizing this with this game. I have plans to help me out a lot in the next game, but this one isn't worth a full rewrite full of features I don't yet know exactly how to program. This is a huge upgrade from my last game in...
by _dementia_
Sat Jan 17, 2015 9:53 am
Forum: Support and Development
Topic: Getting the Length and Width of a Random Rectangle
Replies: 6
Views: 5886

Re: Getting the Length and Width of a Random Rectangle

Here's a little bit more about the error with a collision system I used in another game of mine that should work well with the rectangles of this game...But this picture demonstrates why I think it's the enemy's v.width and not the bullet's bv.width
error 3.png
error 3.png (82.84 KiB) Viewed 5845 times
by _dementia_
Sat Jan 17, 2015 7:12 am
Forum: Support and Development
Topic: Audio fade in/out?
Replies: 2
Views: 3395

Re: Audio fade in/out?

Couldn't you put some kind of timer on it where the volume increasing function is only called when a timer reaches 0? You could probably do it with faster speeds like dt. Completely untested but my idea: function increase_volume(dt,rate) audioSrc:setVolume(audiosrc:getVolume()+rate*dt end function l...
by _dementia_
Sat Jan 17, 2015 3:43 am
Forum: Support and Development
Topic: Getting the Length and Width of a Random Rectangle
Replies: 6
Views: 5886

Getting the Length and Width of a Random Rectangle

Hello! Been a while but I'm finally coding my 2nd 'game' in love and I've gotten a bit stuck. I have some randomly sized rectangles that I need to get the width and length of to determine if there's a collision to do. Here is my enemy_load() function enemy = {} enemy.x1=0 enemy.x2=love.graphics.getW...