Search found 30 matches

by Lynesth
Sat Jun 02, 2012 10:15 pm
Forum: Support and Development
Topic: Help improve my code ? (HardonCollider & Middleclass inside)
Replies: 13
Views: 7026

Re: Help improving my code ?

Double posting to let you guys know that I found what I did wrong... I messed up things between dots and colon.... Thanks anyway :p I know have another issue. It is actually possible to do something like that : myvar = a myvar.x = 0 myvar.y = 0 But using Middleclass, how can I achieve the same thing...
by Lynesth
Sat Jun 02, 2012 2:34 pm
Forum: Support and Development
Topic: Help improve my code ? (HardonCollider & Middleclass inside)
Replies: 13
Views: 7026

Re: Help improving my code ?

Oh it just seemed like quite a slow value for it to be falling at, In my opinion. I may adjust this later. Anyway, I'm trying to make my code a bit more concised (is that the word ?) by using Middleclass (sorry Roland ^^) but I'm getting an error, about trying to index a field a nil value or whatev...
by Lynesth
Sat Jun 02, 2012 3:34 am
Forum: Support and Development
Topic: Help improve my code ? (HardonCollider & Middleclass inside)
Replies: 13
Views: 7026

Re: Help improving my code ?

I, also haven't used Hardon collider, but have you considered having the falling speed be set to an increasing amount, and then your Y can be added or subtracted with that amount? That way any of your items would have more realistic falling, rather than the set speed that they have now. That's what...
by Lynesth
Fri Jun 01, 2012 9:34 pm
Forum: Support and Development
Topic: Help improve my code ? (HardonCollider & Middleclass inside)
Replies: 13
Views: 7026

Re: Help improving my code ?

After checking out, I realised that this glitch would not happen anymore. So well, I don't know what caused that really but yeah, it could have been something in my code that sucked and that I fixed without noticing.
by Lynesth
Fri Jun 01, 2012 11:29 am
Forum: Support and Development
Topic: Help improve my code ? (HardonCollider & Middleclass inside)
Replies: 13
Views: 7026

Re: Help improving my code ?

Thanks for your answers. When I talk about class, I was in fact talking about making a class for world objects, dynamic objects and player. So yeah I might give it a shot sometime soon. Concerning HardonCollider collisions, it ends up pretty weird when the player stands on a dynamic (like the box in...
by Lynesth
Fri Jun 01, 2012 5:49 am
Forum: Support and Development
Topic: Help improve my code ? (HardonCollider & Middleclass inside)
Replies: 13
Views: 7026

Help improve my code ? (HardonCollider & Middleclass inside)

Hi people, I just want to show you something I've started (it'll help me make a game later, but for now I'm just playin' around with stuff and all). I'd like you, if you want to, to check it out and tell me want you think, what could be improved, etc... I know I'll have to use classes later for all ...
by Lynesth
Thu May 31, 2012 5:23 am
Forum: Support and Development
Topic: About dt...(edit: and something else)
Replies: 21
Views: 12322

Re: About dt...(edit: and something else)

To stay with tables (considering the same tables as my last post), here is what you can do (all I will write down here is untested but should give you general idea) : Let's say that the player just made lightning strike vertically a random place (it's a hero so he can do that). First you want to che...
by Lynesth
Thu May 31, 2012 4:34 am
Forum: Support and Development
Topic: Rotate From Center
Replies: 3
Views: 3267

Re: Rotate From Center

You're welcome ;)
by Lynesth
Thu May 31, 2012 4:29 am
Forum: Support and Development
Topic: About dt...(edit: and something else)
Replies: 21
Views: 12322

Re: About dt...(edit: and something else)

@Lynesth You're good at this xD Thank you :p Let's see if I get it, I think I do... apple = {} apple.one = 10 apple.two = 20 apple.three = 30 Now, if I wanted to see the price of all three apples together, I would do... love.graphics.setColor(255, 255, 255) love.graphics.print(apple.one + apple.two...
by Lynesth
Thu May 31, 2012 3:51 am
Forum: Support and Development
Topic: Rotate From Center
Replies: 3
Views: 3267

Re: Rotate From Center

Hi. You just have to add some origin offset in your love.graphics.draw() love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky ) Those we care about are ox and oy, which, for what you wanna do, have to be equal to half your image's width and height respectively. So it would be more something...