Search found 6 matches
- Fri Jul 12, 2019 4:08 pm
- Forum: Support and Development
- Topic: I pass a number into a method but a table is returned
- Replies: 4
- Views: 2539
Re: I pass a number into a method but a table is returned
i see two places where you print to console: - in sceneteleport, which as far as i can tell, is never called, - in buttonclick, which, based on the defined buttons via createButton calls, either return 1, 2, or nil since there's one where you haven't set the 7th argument. from your code, i can't te...
- Thu Jul 11, 2019 4:46 pm
- Forum: Support and Development
- Topic: I pass a number into a method but a table is returned
- Replies: 4
- Views: 2539
I pass a number into a method but a table is returned
Running the code, what's printed is 2 and then table followed by a series of characters. The second print statement is inside the function. I feel like this is a very simple question but I have a lot of code making it complex. I would appreciate any hel
- Sun Jul 07, 2019 9:45 am
- Forum: Support and Development
- Topic: I am trying to draw multipule objects but only one is being drawn
- Replies: 4
- Views: 2942
- Sat Jul 06, 2019 4:37 pm
- Forum: Support and Development
- Topic: I am trying to draw multipule objects but only one is being drawn
- Replies: 4
- Views: 2942
I am trying to draw multipule objects but only one is being drawn
So the hunger goes down by 1 every second and each time this happens a pop-up is meant to come up saying -1. I have not implemented the code for the pop-ups to be deleted yet so they all should be there. Yet, when I run my code only one pop-up is shown each time. But I can tell a new pop-up is being...
- Tue Jul 02, 2019 3:14 pm
- Forum: Support and Development
- Topic: How can I resize an image without resizing the entire co-ordinate system
- Replies: 5
- Views: 6977
Re: How can I resize an image without resizing the entire co-ordinate system
I thought I did that in the draw call. Can you expand on what you think I should do. Sorry for the late response btwKayleMaster wrote: ↑Sat Jun 29, 2019 12:42 pm Did you try scaling in the draw call instead of the entire stack? sx, sy are the parameters, check the API.
- Sat Jun 29, 2019 8:50 am
- Forum: Support and Development
- Topic: How can I resize an image without resizing the entire co-ordinate system
- Replies: 5
- Views: 6977
How can I resize an image without resizing the entire co-ordinate system
window = love.window.setMode( 500, 500 ) love.graphics.setDefaultFilter("nearest", "nearest", 0) monsterImage = love.graphics.newImage("Monster.png") love.graphics.setBackgroundColor(255, 255, 255) function love.draw() love.graphics.scale(4,4) love.graphics.draw(monste...