Search found 248 matches

by arampl
Sun Sep 13, 2015 5:18 pm
Forum: Support and Development
Topic: The Tile System does not work
Replies: 19
Views: 2193

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...
by arampl
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: 921

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...
by arampl
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: 921

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
by arampl
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: 404

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 the post. But even better would ...
by arampl
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: 431

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 image (wire_0.png) to...
by arampl
Wed Sep 09, 2015 9:57 pm
Forum: Support and Development
Topic: Problem with system cursors on Linux
Replies: 0
Views: 362

Problem with system cursors on Linux

"sizeall" cursor showed instead of "sizenwse" or "sizenesw" cursors.
This is on Xubuntu 15.04 64-bit.
by arampl
Tue Sep 08, 2015 7:24 pm
Forum: Support and Development
Topic: Love for Lua Game Programming chapter 2 problem
Replies: 5
Views: 990

Re: Love for Lua Game Programming chapter 2 problem

Just download example code for the book and use it.
by arampl
Tue Sep 08, 2015 5:50 am
Forum: Games and Creations
Topic: SquareZ
Replies: 7
Views: 1670

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...
by arampl
Mon Sep 07, 2015 8:16 pm
Forum: Libraries and Tools
Topic: Ingame Commandline Library [ICL] v.0.1.0
Replies: 4
Views: 895

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...