Search found 6 matches

by shabbs15
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: 2408

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...
by shabbs15
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: 2408

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
by shabbs15
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: 2766

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...
by shabbs15
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: 6737

Re: How can I resize an image without resizing the entire co-ordinate system

KayleMaster 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.
I thought I did that in the draw call. Can you expand on what you think I should do. Sorry for the late response btw
by shabbs15
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: 6737

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