
Search found 8 matches
- Tue Sep 13, 2016 1:10 am
- Forum: Support and Development
- Topic: Removing/Deleting Metatables!
- Replies: 9
- Views: 4725
Re: Removing/Deleting Metatables!
Thanks guys, I sure this will help 

- Sun Sep 11, 2016 9:49 pm
- Forum: Support and Development
- Topic: Removing/Deleting Metatables!
- Replies: 9
- Views: 4725
Re: Removing/Deleting Metatables!
Unless they have specific function to destroy the window, you should hide it and remove all references to it, thereby making it garbage-collectible. The garbage collector, seeing as the table is no longer used, will collect it and remove from memory. Note that while technically still around, the mo...
- Sun Sep 11, 2016 9:18 pm
- Forum: Support and Development
- Topic: Removing/Deleting Metatables!
- Replies: 9
- Views: 4725
Removing/Deleting Metatables!
I might just be retarded or something but I can't do it. Well you see I have these metatables used to create as many window objects as I want, it's quite nice. Accept when you press the "X out" button I don't know how to delete the window, the closest I've come is setting a variable "...
- Wed Aug 24, 2016 12:34 am
- Forum: Support and Development
- Topic: How to Solve Mouse Clicks on Multiple Layers?
- Replies: 4
- Views: 3549
Re: How to Solve Mouse Clicks on Multiple Layers?
I like that idea a lot, and now feel dumb for not thinking thatPlu wrote:You could give each view a z-index, and hit them in order of z-index with an option on the event to stop propagation. That's basically how HTML/Javascript does it.

- Tue Aug 23, 2016 9:07 pm
- Forum: Support and Development
- Topic: How to Solve Mouse Clicks on Multiple Layers?
- Replies: 4
- Views: 3549
Re: How to Solve Mouse Clicks on Multiple Layers?
The simplest solution would be to design your UI so nothing overlaps. If it's an issue of both a button and a window registering mouse click events at the same time, Then If a button was clicked, Don't trigger the event in the window containing it. If it's an issue of windows overlapping, It would ...
- Tue Aug 23, 2016 8:39 pm
- Forum: Support and Development
- Topic: How to Solve Mouse Clicks on Multiple Layers?
- Replies: 4
- Views: 3549
How to Solve Mouse Clicks on Multiple Layers?
Hi, I'm working on a game and have made some metatables for like buttons and windows, both have a handler metatable respectively called either button manager or window manager, in them is a function I run in love.update called WindowManager:doEvents() or ButtonManager:doEvents() which tests if mouse...
- Sun Sep 13, 2015 12:28 am
- Forum: Support and Development
- Topic: Image Layering/generating
- Replies: 2
- Views: 1272
Re: Image Layering/generating
Ok ill try that thanks
- Sat Sep 12, 2015 12:40 am
- Forum: Support and Development
- Topic: Image Layering/generating
- Replies: 2
- Views: 1272
Image Layering/generating
So probably a stupid question but I'm kinda new to love and 2d game making, but in simple game i want to create you "jump between planets" in your spaceship, now each planet I want to be randomly generated by having some base images like cloud cover and planet color and moons. Now I realiz...