Search found 20 matches
- Sun Nov 11, 2012 9:15 pm
- Forum: Support and Development
- Topic: Creating object Creator
- Replies: 4
- Views: 2904
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...
- Sun Nov 11, 2012 8:59 pm
- Forum: Support and Development
- Topic: Creating object Creator
- Replies: 4
- Views: 2904
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...
- Wed Sep 12, 2012 7:45 pm
- Forum: Support and Development
- Topic: How correctly use "self" + colon
- Replies: 6
- Views: 4299
Re: How correctly use "self" + colon
If I got function
And I will add table X
and then
Will it print 1?
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={}
Code: Select all
X:func(1, 1)
print(X.x)
- Wed Sep 12, 2012 7:15 pm
- Forum: Support and Development
- Topic: How correctly use "self" + colon
- Replies: 6
- Views: 4299
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.
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.
- Sun Sep 09, 2012 2:11 am
- Forum: Support and Development
- Topic: Am I correct?
- Replies: 4
- Views: 2403
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 "...
- Sun Aug 26, 2012 12:56 pm
- Forum: Support and Development
- Topic: How Mix Love.Draw and Love.Update?
- Replies: 2
- Views: 1426
Re: How Mix Love.Draw and Love.Update?
Helps a lot! Thanks buddy!
- Sun Aug 26, 2012 12:27 pm
- Forum: Support and Development
- Topic: How Mix Love.Draw and Love.Update?
- Replies: 2
- Views: 1426
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...
- Wed Apr 25, 2012 5:59 pm
- Forum: Support and Development
- Topic: Image without its background
- Replies: 3
- Views: 1988
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.
- Wed Apr 25, 2012 5:28 pm
- Forum: Support and Development
- Topic: Image without its background
- Replies: 3
- Views: 1988
Image without its background
Hello!
Let's say we got dude like him:
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 )
Thanks You
Let's say we got dude like him:
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 )
Thanks You
- Wed Apr 25, 2012 3:29 pm
- Forum: Libraries and Tools
- Topic: Advanced Tiled Loader - No longer maintained
- Replies: 260
- Views: 190643
Re: Advanced Tiled Loader
So I didn't had latest version of ATL?
Thanks anyway
Thanks anyway