Search found 721 matches

by Plu
Thu Aug 11, 2016 9:07 am
Forum: Support and Development
Topic: bad argument #2 to 'draw' in function love.draw()
Replies: 7
Views: 3673

Re: bad argument #2 to 'draw' in function love.draw()

What is the value of gameMap? It seems to be a Texture, which means that your mapPosX should be a Quad, but that does not seem to be what you think you're getting.

The definition of gameMap is not visible anywhere, can you post that?
by Plu
Wed Aug 10, 2016 8:50 pm
Forum: Games and Creations
Topic: Ultra Rainbow Bake Sale: singleplayer, deck-building, baking
Replies: 4
Views: 1663

Re: Ultra Rainbow Bake Sale (deck-building) [free alpha] [feedback wanted]

I like it! It's quite hard, too.

Also, where do these Ennui cards come from? They seem to randomly appear, although I think there's probably some kind of rule?
by Plu
Wed Aug 10, 2016 4:14 pm
Forum: Support and Development
Topic: How to make rectangle move from side to side
Replies: 3
Views: 1393

Re: How to make rectangle move from side to side

You need to store the actual movement direction. As soon as you move one step left, you are no longer at the right-most edge and unless you make the program remember that it was going in a specific direction, it will move right again (and appear to be stuck) if x >= window_width - rectangle_width th...
by Plu
Wed Aug 10, 2016 8:10 am
Forum: Support and Development
Topic: Is there a way to get current transformation?
Replies: 12
Views: 4178

Re: Is there a way to get current transformation?

I asked the same question recently (viewtopic.php?f=4&t=82545&hilit=translation) and the answer seems to be "no". :(
by Plu
Tue Jul 26, 2016 8:16 am
Forum: Support and Development
Topic: Wall collision
Replies: 3
Views: 1547

Re: Wall collision

That's what I mentioned in my last paragraph, but it's a lot more complex, which is why I suggested doing it the simpler way first :)
by Plu
Tue Jul 26, 2016 7:26 am
Forum: Support and Development
Topic: Wall collision
Replies: 3
Views: 1547

Re: Wall collision

Yeah, the subject is just called "collision detection". That term should get you plenty of tutorials and examples :) The reason your player teleports to the same location every time is that you just set his x to be on the left side of the wall. In order to make the player stop when he hits...
by Plu
Tue Jul 26, 2016 7:17 am
Forum: Support and Development
Topic: Rectangle Disappearing After a few Seconds
Replies: 5
Views: 1465

Re: Rectangle Disappearing After a few Seconds

Any chance you could stop the code in a debugger after the rectangle disappears to see if all the variables are still set properly?
by Plu
Fri Jul 22, 2016 4:39 pm
Forum: Support and Development
Topic: Inventory Management help [SOLVED]
Replies: 3
Views: 1481

Re: Inventory Management help

You seem to have made a two-dimensional inventory, where each entry in the inventory can, itself, contain multiple items. I don't think that's intentional, and it's probably causing your issue. Your inventory starts out like this: { {}, {}, {}, {}, {} } -- 5 empty entries Then, when you add your fir...
by Plu
Thu Jul 21, 2016 11:22 am
Forum: Support and Development
Topic: I can't get Love 0.10.1 to run on notepad++!
Replies: 4
Views: 2449

Re: I can't get Love 0.10.1 to run on notepad++!

You're going to have explain a bit more about what's going wrong... what exactly are you trying to do and which parts don't work?
by Plu
Thu Jul 21, 2016 5:57 am
Forum: Libraries and Tools
Topic: Barrack - A simple type checking library
Replies: 7
Views: 2025

Re: Barrack - A simple type checking library

The library has a validate function, which you pass a table and a pre-defined schema. You would have to change it to work better for validating functions, it's currently designed to validate whether tables are in the correct format. It works like this: -- define a schema to check against later valid...