Search found 12 matches

by Ser_Mitch
Fri May 02, 2014 1:02 am
Forum: Support and Development
Topic: Smooth object stopping...
Replies: 3
Views: 1558

Re: Smooth object stopping...

Hey thanks,

I thought the issue would be something like this, I got that it was 'overshooting' the destination point, but my implementation was broken and all my attempts to fix it just made the overshoot bigger.

Thanks heaps :)
by Ser_Mitch
Thu May 01, 2014 10:21 pm
Forum: Support and Development
Topic: Smooth object stopping...
Replies: 3
Views: 1558

Smooth object stopping...

Hey everyone :)

Getting back into lÖve now that I'm studying, threw this together last night...

How do I stop the entity 'buzzing' around the destination point? Is there a way to make it come to a clean stop?

Thanks guys,



P.S Left click to select blue ball, right click to move blue ball
by Ser_Mitch
Fri Sep 06, 2013 7:13 am
Forum: Support and Development
Topic: How to reference variables from one .lua file to another...
Replies: 9
Views: 8181

Re: How to reference variables from one .lua file to another

I know you can do something with tables and the word 'self'. Is that worth looking at? I know I'll have to eventually, but I wanted to get some sort of engine down first.
by Ser_Mitch
Thu Sep 05, 2013 5:52 am
Forum: Support and Development
Topic: How to reference variables from one .lua file to another...
Replies: 9
Views: 8181

Re: How to reference variables from one .lua file to another

Okaay. I've just been doing it like this: creep = {} function creep.load() creep = {} creep.x = whatever return creep Because that appeals to my sense of OCD. Can someone show me/give me a pointer to a tutorial that explains the better way of doing things? According to said sense of OCD, I have to u...
by Ser_Mitch
Wed Sep 04, 2013 7:42 am
Forum: Support and Development
Topic: How to reference variables from one .lua file to another...
Replies: 9
Views: 8181

Re: How to reference variables from one .lua file to another

Wow, thanks guys, it's working now. All I did was change the hero.getPosition() function, I didn't mess around with tables and constructors and whatnot. Just out of curiosity, why would it be better for me to do that?
by Ser_Mitch
Tue Sep 03, 2013 6:59 am
Forum: Support and Development
Topic: How to reference variables from one .lua file to another...
Replies: 9
Views: 8181

How to reference variables from one .lua file to another...

Hey all, I'm having issues cross-referencing files. I'm trying to take the variables hero.x and hero.y, which live in hero.lua, and reference them in creep.lua for basic AI, but I get the error message "creep.lua:27: attempt to perform arithmetic on local 'x' (a nil value). I've messed around, ...
by Ser_Mitch
Tue Apr 16, 2013 11:30 pm
Forum: Support and Development
Topic: How to make a bullet face the direction it was fired in...
Replies: 2
Views: 1991

How to make a bullet face the direction it was fired in...

Hey Guys, I want to make a Realm of the Mad God-esque RPG (eventually), and I would like the melee attack sprite face the direction it was fired in. Here is the bit of code which is giving me an issue (I think): function love.draw() local x1 = hero.x local y1 = hero.y local x2 = love.mouse.getX() lo...
by Ser_Mitch
Sat Oct 20, 2012 1:20 am
Forum: Support and Development
Topic: Transparency with .pngs... I can't figure it out.
Replies: 9
Views: 3921

Re: Transparency with .pngs... I can't figure it out.

On my gaming/coding laptop ( Windows 7 home edition, i7 2nd gen, 4gb ram, 2gb Nvidia 610m ded graphics, love 0.8.0) I got the transparency just fine. No idea what your issue is :| I'll send you a screenshot when I get home, just to prove that I'm not insane...
by Ser_Mitch
Fri Oct 19, 2012 1:35 am
Forum: Support and Development
Topic: Transparency with .pngs... I can't figure it out.
Replies: 9
Views: 3921

Re: Transparency with .pngs... I can't figure it out.

Worked fine for me...

I opened your image in Paint.NET (to make sure the transparency was there :P ) and resaved it...
I used the bits of your code in the .love file below... See how it works. :)

P.S try and submit a .love file with help requests... makes it easier to solve :)
by Ser_Mitch
Wed Oct 17, 2012 9:04 am
Forum: Support and Development
Topic: Help with "require" needed
Replies: 6
Views: 2124

Re: Help with "require" needed

All good nixola.. Thanks guys, I wasn't actually expecting to get an answer back so quick :P