Search found 32 matches

by Duster
Fri Feb 06, 2015 5:40 am
Forum: Support and Development
Topic: Is it possible to make this kind of function?
Replies: 4
Views: 1565

Re: Is it possible to make this kind of function?

what do i write then? like this? for i,v in ipairs(table) do if v.(what comes in here?) == 1 then print('hi') end end and what comes in the 'what comes in here' brackets? Yep, it's a start You don't need the "what comes in here" parentheses for this particular table. "v" is simp...
by Duster
Tue Feb 03, 2015 6:10 pm
Forum: Libraries and Tools
Topic: [Utility] Love Compiler
Replies: 17
Views: 12786

Re: [Utility] Love Compiler

Very nice. As someone who gets very self conscious about his code, I'm looking forward to seeing more from this. :)
by Duster
Tue Feb 03, 2015 6:09 pm
Forum: Support and Development
Topic: Question about Löve particle system.
Replies: 5
Views: 1129

Re: Question about Löve particle system.

When I needed something similar to this for a "raindrops on the screen" effect, I just used object orientation. However your thing is a little different since it's leaves—I assume you probably want to utilize some of the handy parameters and all that. Unfortunately as far as I know Love ha...
by Duster
Tue Feb 03, 2015 5:40 pm
Forum: General
Topic: Choppy player movement
Replies: 7
Views: 6678

Re: Choppy player movement

I have a feeling this has to do with your computer's specs. Delta Time is the amount of time passed since the last update, which is directly based on how fast your computer can process and draw each cycle. So if the movement is choppy while using dt, your dt is probably higher than normal. I've seen...
by Duster
Sun Feb 01, 2015 9:44 pm
Forum: Libraries and Tools
Topic: [Solved] Clearing Screen After Restart
Replies: 2
Views: 2067

Re: [Help] Clearing Screen After Restart

You shouldn't store your list of enemies in the same table as your enemy variables. I'd make two separate tables, enemy and enemies. The former would hold variables about your enemies, the latter would hold your actual enemy instances. Currently by saying "enemies = {}" you're also getting...
by Duster
Sun Feb 01, 2015 8:40 pm
Forum: Support and Development
Topic: [Help] making enemies
Replies: 10
Views: 5299

Re: Im a noob somebody help me

Read the wiki, check tutorials on youtube, etc.
Love is well documented so if you don't know how to use something, chances are you can find the answer on the wiki
by Duster
Tue Jan 27, 2015 11:09 pm
Forum: Games and Creations
Topic: [game] The Little Lost Giraffe
Replies: 12
Views: 6219

Re: [game] The Little Lost Giraffe

Interesting, I had this exact gameplay idea pop into my head a week ago but couldn't figure out how to use it in a fun way. Nice work!
by Duster
Mon Jan 19, 2015 8:16 am
Forum: Support and Development
Topic: Audio fade in/out?
Replies: 2
Views: 3395

Re: Audio fade in/out?

I've decided to work around it by just using love.audio instead of TESound for atmospheric effects, which works perfectly.
by Duster
Thu Jan 15, 2015 7:55 pm
Forum: Support and Development
Topic: Audio fade in/out?
Replies: 2
Views: 3395

Audio fade in/out?

I can't seem to find a way to do this properly without frequent audio glitches. Currently what I'm doing is tweening a volume variable from 0-1 and assigning it to my audio every update. Unfortunately this sporadically causes some unwanted noise (http://vocaroo.com/i/s0ZvMDfwY1BO). What are some oth...
by Duster
Wed Dec 24, 2014 10:56 pm
Forum: Support and Development
Topic: Gravity & Collisions
Replies: 6
Views: 4206

Re: Gravity & Collisions

I suggest reading some basic Love tutorials as they will cover this exact subject in more depth than I will. Gravity is as simple as "player.vy = player.vy + gravity * dt". Collisions are a whole other matter though, and they kinda depend on what lib you're using/if you're even using a lib...