Search found 13 matches
- Sat Dec 24, 2011 8:52 pm
- Forum: Support and Development
- Topic: Image wont work in table?[Code Included]
- Replies: 6
- Views: 2756
Re: Image wont work in table?[Code Included]
I figured it out! Char kept being redefined, because the love.load is always running, ahh. Is there any way to make something define itself once? I just put this in the load if not char then --load --add to objects function end Is there an easy way to have objects only load once? I will want to name...
- Sat Dec 24, 2011 8:47 pm
- Forum: Support and Development
- Topic: Image wont work in table?[Code Included]
- Replies: 6
- Views: 2756
Re: Image wont work in table?[Code Included]
I still get the error, saying it expected userdata. Can you post the modifications you made?
- Sat Dec 24, 2011 6:36 pm
- Forum: Support and Development
- Topic: Adding An Image To A Table
- Replies: 10
- Views: 4864
Re: Adding An Image To A Table
I posted the code in a new thread, it's explained much better. Let's let this die.
- Sat Dec 24, 2011 6:30 pm
- Forum: Support and Development
- Topic: Image wont work in table?[Code Included]
- Replies: 6
- Views: 2756
Image wont work in table?[Code Included]
So, I have an image and I insert it into a table, but it won't work. It lets me access everything else in the table, just not the object. Or maybe I'm doing this wrong. main.lua require ("character.lua")--Not needed, it's currently empty require ("platformPhysics.lua") function l...
- Sat Dec 24, 2011 1:26 am
- Forum: Support and Development
- Topic: Adding An Image To A Table
- Replies: 10
- Views: 4864
Re: Adding An Image To A Table
That made no sense. Please only reply if you're going to help.
- Fri Dec 23, 2011 8:23 pm
- Forum: Support and Development
- Topic: Adding An Image To A Table
- Replies: 10
- Views: 4864
Re: Adding An Image To A Table
I explained this terribly..gah..I appologise..I'm new to foruming.. So, I have a table, that I put other tables inside. Each added table has the object and values for it, like x and y. When I say tablename.x, and y, it always works, and I can print the correct number, but when I use .object, that's ...
- Fri Dec 23, 2011 3:42 pm
- Forum: Support and Development
- Topic: Adding An Image To A Table
- Replies: 10
- Views: 4864
Re: Adding An Image To A Table
So, your ways to manage my table was nicer, but it didn't answer my question, of why it won't let me store a loaded image in the table. I want to use the key "object" but it always tells me the error I posted when I try to draw it from the table as table.objects (TABLE ISN'T NAMED TABLE, D...
- Fri Dec 23, 2011 3:34 pm
- Forum: Support and Development
- Topic: Adding An Image To A Table
- Replies: 10
- Views: 4864
Re: Adding An Image To A Table
Okay, I'll try this out. And don't worry about my table name, I was just doing that as an example. I think I get your method now, I'll try it.
- Fri Dec 23, 2011 3:27 am
- Forum: Support and Development
- Topic: Adding An Image To A Table
- Replies: 10
- Views: 4864
Adding An Image To A Table
So, I'm fairly new to this, and I'm making a system to store values of objects. I want to insert the image into a table, with the key "object". I made a function that adds it into a table. So, basically, here. objectimage = --the loaded image table = {object = objectimage} When I go throug...
- Sun Dec 18, 2011 6:49 pm
- Forum: Support and Development
- Topic: Help With Tables? [Code Included]
- Replies: 3
- Views: 1615
Help With Tables? [Code Included]
I'm trying to make these clouds generate and slowly move throughout my map, but it won't work. I need each cloud to have an X and Y value, so I stuck each cloud in a table, and that table goes into the table that the script draws and moves. It keeps giving me "stack overflow" error, on the...