Search found 5 matches

by Sketchy
Sat Oct 31, 2009 10:57 pm
Forum: Support and Development
Topic: Accessible objects and Love
Replies: 13
Views: 16131

Re: Accessible objects and Love

Thanks again for another very detailed reply.
You even pre-empted my next question, which would have been "What do you use for non-numerical keys?" :)
by Sketchy
Sat Oct 31, 2009 5:52 pm
Forum: Support and Development
Topic: Accessible objects and Love
Replies: 13
Views: 16131

Re: Accessible objects and Love

Thanks for the very thorough explanation.
I had realized it would get messy with loads of objects, but didn't get as far as trying to work out a solution - figured I'd cross that bridge as I came to it.
Think I need to read up on "ipairs" too, as I don't actually know what that does...
by Sketchy
Sat Oct 31, 2009 11:44 am
Forum: Support and Development
Topic: Accessible objects and Love
Replies: 13
Views: 16131

Re: Accessible objects and Love

function load() character = {} character.sprite = love.graphics.newImage("sprite.png") character.x = 100 character.y = 100 end function draw() love.graphics.draw(character.sprite, character.x, character.y) end The above is not necessarily best practice coding (in fact, it definitely isn't...
by Sketchy
Fri Oct 30, 2009 5:44 pm
Forum: Support and Development
Topic: Noob Particle Problems
Replies: 2
Views: 2106

Re: Noob Particle Problems

Thanks a lot - that worked perfectly :)
by Sketchy
Fri Oct 30, 2009 3:20 pm
Forum: Support and Development
Topic: Noob Particle Problems
Replies: 2
Views: 2106

Noob Particle Problems

Firstly, I just want to say that I'm very new to Löve, so sorry if this is a noobish question. I'm starting simple, and making a little asteroids clone. I've got the ship movement working nicely, and want to add a kind of exhaust trail using particles. I want them to be created at the player's posit...