Search found 248 matches
- Sun Sep 13, 2015 5:18 pm
- Forum: Support and Development
- Topic: The Tile System does not work
- Replies: 19
- Views: 7589
Re: HELP ME
Source code cannot be used because other required files are missing, though add this to just before line 145 (the if statement) : print(map[y + mapY],#map) print(map[y + mapY][x + mapX],#map) print(tileI[y + mapY][x + mapX],#tileI) print(tileIndex[map[y + mapY][x + mapX]],#tileIndex) if any of thos...
- Sun Sep 13, 2015 2:39 pm
- Forum: Support and Development
- Topic: being over the item will only show info if it is the latest
- Replies: 4
- Views: 2521
Re: being over the item will only show info if it is the lat
This issue was that after finding a collision, it would continue iterating through the item list. If there's no collision with the next item, it will reset drawNotify to false, and nil id and name. Inserting a 'break' or a 'return(0)' will exit the loop when it finds the first collision. Yeah, it's...
- Sun Sep 13, 2015 2:16 pm
- Forum: Support and Development
- Topic: being over the item will only show info if it is the latest
- Replies: 4
- Views: 2521
Re: being over the item will only show info if it is the lat
Hi! Add "break" here: function items.notification() for k, v in pairs(items.items) do if collision(player.x, player.y, player.w, player.h, v.x, v.y, v.w, v.h) then drawNotify = true name = v.name id = v.id break else drawNotify = false name = "" id = "" end end end
- Fri Sep 11, 2015 10:40 pm
- Forum: Support and Development
- Topic: I NEED HELP: attempt to call global animationArray (a nil)
- Replies: 2
- Views: 1325
Re: I NEED HELP: attempt to call global animationArray (a ni
This is because you put "end" keyword in the wrong place. Remove it from the last line and put it where "love.draw" function ends. Consider to format source code with tabs or spaces - easier to hunt such typos. You could also format source code with "Code" tag inside th...
- Fri Sep 11, 2015 5:32 pm
- Forum: Support and Development
- Topic: For loop inside love.update is not working as i think
- Replies: 2
- Views: 1778
Re: For loop inside love.update is not working as i think
Hi, fergarram! Add "break" keyword to your "for" loop: for i = 1,#instanceList do if instanceList[i].x == cursor_x and instanceList[i].y == cursor_y then can_click = false break else can_click = true end end I feel this is work in progress because: 1. You always assign the same i...
- Wed Sep 09, 2015 9:57 pm
- Forum: Support and Development
- Topic: Problem with system cursors on Linux
- Replies: 0
- Views: 864
Problem with system cursors on Linux
"sizeall" cursor showed instead of "sizenwse" or "sizenesw" cursors.
This is on Xubuntu 15.04 64-bit.
This is on Xubuntu 15.04 64-bit.
- Tue Sep 08, 2015 7:24 pm
- Forum: Support and Development
- Topic: Love for Lua Game Programming chapter 2 problem
- Replies: 5
- Views: 3228
Re: Love for Lua Game Programming chapter 2 problem
Just download example code for the book and use it.
- Tue Sep 08, 2015 6:29 pm
- Forum: Support and Development
- Topic: Rectangle collision with angled rectangles?
- Replies: 7
- Views: 3817
- Tue Sep 08, 2015 5:50 am
- Forum: Games and Creations
- Topic: SquareZ
- Replies: 7
- Views: 4856
Re: SquareZ
1. love.graphics.setNewFont can be bottleneck here. Check warning (yellow background) on its Wiki page . You should create all fonts in love.load and use love.graphics.setFont later on. 2. love.graphics.getWidth / love.graphics.getHeight don't need to be called from love.update. Use love.resize even...
- Mon Sep 07, 2015 8:16 pm
- Forum: Libraries and Tools
- Topic: Ingame Commandline Library [ICL] v.0.1.0
- Replies: 4
- Views: 2346
Re: Ingame Commandline Library [ICL] v.0.0.1
Creative Commons license is mainly used for art and is not recommended for software: https://wiki.creativecommons.org/wiki/Frequently_Asked_Questions#Can_I_apply_a_Creative_Commons_license_to_software.3F . CC can be used for documentation though. Free/open source software libraries usually uses zlib...