Search found 76 matches

by scissors61
Wed Dec 21, 2016 4:12 am
Forum: Libraries and Tools
Topic: Knife: a collection of micro-modules
Replies: 24
Views: 18425

Re: Knife: a collection of micro-modules

Don't worry, it's difficult to explain properly and probably not easy to understand if you're just getting started, but it should make sense after a while. I'm finding it very interesting, but yeah, I'm struggling a little bit, mostly because, based on your examples, explanations and what I have ex...
by scissors61
Tue Dec 20, 2016 5:18 am
Forum: Libraries and Tools
Topic: Knife: a collection of micro-modules
Replies: 24
Views: 18425

Re: Knife: a collection of micro-modules

Hmm, your comments have been helping me to rethink about parameters, returns, tables, values and variables, so great! It was the _entity option that allowed to modify components through systems, not that I'm unwilling to try the "=selected" sigil, but the behavior is weird and I couldn't m...
by scissors61
Sun Dec 18, 2016 7:03 am
Forum: Libraries and Tools
Topic: Knife: a collection of micro-modules
Replies: 24
Views: 18425

Re: Knife: a collection of micro-modules

Sorry, how would I identify the component that was just processed by a system to return it a value? A loop and also return "name" to find the right entity? Btw, I'm learning programming and lua as I experiment with love2d. Recently I managed to understand what return does (I thought that I...
by scissors61
Sun Dec 18, 2016 6:17 am
Forum: Libraries and Tools
Topic: Knife: a collection of micro-modules
Replies: 24
Views: 18425

Re: Knife: a collection of micro-modules

Much better. That's exactly for my case. Thanks. I have another question. Can I update components values from systems basing only on the parameters from functions? I want to do this {"name", "selected", "x", "y", "w", "h", "-study"...
by scissors61
Fri Dec 16, 2016 5:17 am
Forum: Libraries and Tools
Topic: Knife: a collection of micro-modules
Replies: 24
Views: 18425

Re: Knife: a collection of micro-modules

Made it work! thanks for your explanation. It helped me to find the solution. The problem was that I was using a component in the entities to filter in which gamestate the entity will work, like this: mainMenu = true, but because it was only a filter I didn't add it to the function, which messed up ...
by scissors61
Thu Dec 15, 2016 4:56 am
Forum: Libraries and Tools
Topic: Knife: a collection of micro-modules
Replies: 24
Views: 18425

Re: Knife: a collection of micro-modules

Hi, thanks for your library. I'm experimenting with ecs using your library, which worked pretty well, but I'm having a problem when trying to use knife.system with love.mousepressed because that function requires the arguments "x, y, button, istouch" which I can't find a way to pass them t...
by scissors61
Tue Sep 20, 2016 5:21 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 410721

Re: "Questions that don't deserve their own thread" thread

wow, cool, thanks for sharing it, Glad that it allows scrolling by dragging the list with the mouse because what I'm doing will be mainly for mobile. I'll be trying to understand your code to implement it.
by scissors61
Tue Sep 20, 2016 2:57 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 410721

Re: "Questions that don't deserve their own thread" thread

I see. Thanks to all... It seems that it wasn't a bad idea to use gamera. The only risk is the quantity of items becoming too big for the graphics to handle them. If the quantity becomes a problem I'll try to apply Nixola's suggestion of drawing only the items that I'm hovering on.
by scissors61
Mon Sep 19, 2016 6:23 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 410721

Re: "Questions that don't deserve their own thread" thread

Hey guys, I'm creating a game that will have a search function and the results will be a long list of items, so I need to create a vertical scrolling list to navigate through every item on the list. My first solution was to draw them all and to "fly" on top of them with gamera. Is this alr...
by scissors61
Mon Sep 05, 2016 10:11 pm
Forum: Support and Development
Topic: Can't compare the same value in two different tables.
Replies: 11
Views: 9238

Re: Can't compare the same value in two different tables.

Thanks @Zeliarden, it says it works, I can compare the values!, but I'm lost lol. So, the position is backward in love.update, but in love.graphics is in the order that is written in the components file, it seems... I'm trying to see the logic of this to continue with the code. Oh, I see that I made...