Well, I moved it into floorcollide. But it still expects userdataRobin wrote:Did you use box.draw() or box:draw()?TurtleP wrote:It's not doing anything because it "expects userdata"
Search found 147 matches
- Sat Apr 07, 2012 6:09 pm
- Forum: Support and Development
- Topic: Drawing help
- Replies: 16
- Views: 5174
Re: Drawing help
- Sat Apr 07, 2012 2:57 am
- Forum: Support and Development
- Topic: Drawing help
- Replies: 16
- Views: 5174
Re: Drawing help
I believe so. It's a mod I'm making for Mari0 btw.veethree wrote:Do you call the box:draw function in the love.draw in main.lua?
EDIT:
It's not doing anything because it "expects userdata"
- Fri Apr 06, 2012 2:24 pm
- Forum: Support and Development
- Topic: Drawing help
- Replies: 16
- Views: 5174
Drawing help
Hello all, I am trying to draw an image in this class, box.lua. However, it will not appear. I looked at the hamster ball tutorial, and still it refuses to draw! box = class:new() function box:init(x, y) --PHYSICS STUFF self.cox = x self.coy = y self.x = x-12/16 self.y = y-14/16 self.speedy = 0 self...
- Sun Mar 25, 2012 2:59 am
- Forum: Libraries and Tools
- Topic: Project: Coding Conversion
- Replies: 2
- Views: 1248
Project: Coding Conversion
Hello all, I am making a game in Vb 2010 express, and was wondering if anyone who knew LOVE well enough could convert VB to LOVE. If you can, you get a cookie. But seriously, I'd love for someone to help me. It's not done yet, the game, but I'd like to see if the main menu and first level could be d...
- Fri Mar 23, 2012 9:42 pm
- Forum: Support and Development
- Topic: Two things
- Replies: 21
- Views: 8237
Re: Two things
I just finished the map and re sizing the player. Now..What? You now should see another thing. map is not all being draw. why? because you are limiting in map_display_x/y. You want zelda "rooms" or scrolling? Also even that I'm also leaving you should post your work in progress so I and o...
- Fri Mar 23, 2012 9:35 pm
- Forum: Support and Development
- Topic: Two things
- Replies: 21
- Views: 8237
Re: Two things
Your code revised. I took your wav away sorry. leave sound for later... Your next problem. Your character draw is not accounting with map offset. see what happens if I put map offset to 0/0! all works Wow. Thanks! Did you read my animation problem? We are out of "syncro" now. start using ...
- Fri Mar 23, 2012 9:16 pm
- Forum: Support and Development
- Topic: Two things
- Replies: 21
- Views: 8237
Re: Two things
Wow. Thanks!coffee wrote:Your code revised. I took your wav away sorry. leave sound for later...
Your next problem. Your character draw is not accounting with map offset. see what happens if I put map offset to 0/0! all works
Did you read my animation problem?
- Fri Mar 23, 2012 9:05 pm
- Forum: Support and Development
- Topic: Two things
- Replies: 21
- Views: 8237
Re: Two things
One more thing, function love.draw() draw_map() if leftkey == true then animation = animation + 1 if animation >= 0 and animation < 2 then love.graphics.draw(PlayerA, player.act_x, player.act_y) end if animation >=2 and animation <4 then love.graphics.draw(PlayerA2, player.act_x, player.act_y) end i...
- Fri Mar 23, 2012 8:55 pm
- Forum: Support and Development
- Topic: Two things
- Replies: 21
- Views: 8237
Re: Two things
Well, looking better for your code. First problems: Your sprites aren't the same size as told in map ( tile_w = 40, tile_h = 40). Player is 28x32 and barrier is 31x32. but since you aren't drawing floor it's ok. Trying to see what you want to do. So that's why my barrier is not being drawn as I wan...
- Fri Mar 23, 2012 8:34 pm
- Forum: Support and Development
- Topic: Two things
- Replies: 21
- Views: 8237
Re: Two things
You must have a exactly named "PlayerD.png" in same directory than your main.love. Also try to instead use lowercase just for debugging for now. Can you post your .Love file (zip the files inside directory)? Yes, would you like to see my Source? Drawing a barrier seems to be a situation f...