Search found 20 matches

by Krizzu
Sun Nov 11, 2012 9:15 pm
Forum: Support and Development
Topic: Creating object Creator
Replies: 4
Views: 2664

Re: Creating object Creator

Yea, I created it earlier, just didn't posted it. object={} And problem is still ariving #EDIT Eh, stupid me >_< In loop, you must make table in table, which is: object={} for i=1,10 do object ={} object .x=100 object .y=100 object .body=love.physics.newBody(world, object .x, object .y, "dynami...
by Krizzu
Sun Nov 11, 2012 8:59 pm
Forum: Support and Development
Topic: Creating object Creator
Replies: 4
Views: 2664

Creating object Creator

Hello World I'd like to create simply Object creator with for loop: for i=1,10 do object .x=100 object .y=100 object .body=love.physics.newBody(world, object .x, object .y "dynamic") object .shape=love.physics.newRectangleShape(21,21) object .fixture=love.physics.newFixture(object.obj .bod...
by Krizzu
Wed Sep 12, 2012 7:45 pm
Forum: Support and Development
Topic: How correctly use "self" + colon
Replies: 6
Views: 3982

Re: How correctly use "self" + colon

If I got function

Code: Select all

t = {}

function t:func(x, y)
  self.x = x
  self.y = y
end

t:func(1, 1)
print(t.x) -- 1

And I will add table X

Code: Select all

X={}
and then

Code: Select all

X:func(1, 1)
print(X.x)
Will it print 1?
by Krizzu
Wed Sep 12, 2012 7:15 pm
Forum: Support and Development
Topic: How correctly use "self" + colon
Replies: 6
Views: 3982

How correctly use "self" + colon

Hi

It's me again with newbie questions/requests.
I'm wondering if is there anyone who can explain in the simples possible way how to correctly use "self" in functions and mighty Colon.

I readed bunch of guides, tried to do it myself but it seems I didnt get it well.
by Krizzu
Sun Sep 09, 2012 2:11 am
Forum: Support and Development
Topic: Am I correct?
Replies: 4
Views: 2242

Am I correct?

local mySecretVariable = "A secret!" local mySecretVariable2 = "Another secret." function getTheSecret( firstSecret ) if ( firstSecret ) then return mySecretVariable else return mySecretVariable2 end end print( getTheSecret() ) What should it print? I think it would print "...
by Krizzu
Sun Aug 26, 2012 12:56 pm
Forum: Support and Development
Topic: How Mix Love.Draw and Love.Update?
Replies: 2
Views: 1343

Re: How Mix Love.Draw and Love.Update?

Helps a lot! Thanks buddy!
by Krizzu
Sun Aug 26, 2012 12:27 pm
Forum: Support and Development
Topic: How Mix Love.Draw and Love.Update?
Replies: 2
Views: 1343

How Mix Love.Draw and Love.Update?

Hello I got problem. I want to make a information about leaving the game. So, When I press Escape Key (in love.keypressed function) I want to print in the middle of the screen text "Are you sure want to quit"(love.draw) function love.keypressed(key) if key == "escape" then love.e...
by Krizzu
Wed Apr 25, 2012 5:59 pm
Forum: Support and Development
Topic: Image without its background
Replies: 3
Views: 1764

Re: Image without its background

I will play with paint.net, it's pretty cool. Thanks guys, hope there are more people helpful like You.
by Krizzu
Wed Apr 25, 2012 5:28 pm
Forum: Support and Development
Topic: Image without its background
Replies: 3
Views: 1764

Image without its background

Hello!

Let's say we got dude like him:

Image

And how can I delete or disable that pink background? Is there any way to disable/delete it in LOVE or should I use photo editor? (and which ona :crazy: )


Thanks You :)
by Krizzu
Wed Apr 25, 2012 3:29 pm
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 260
Views: 178027

Re: Advanced Tiled Loader

So I didn't had latest version of ATL?
Thanks anyway :)