Search found 28 matches

by Lirija
Mon Feb 19, 2018 4:10 pm
Forum: Support and Development
Topic: Camera and pause problem
Replies: 4
Views: 2685

Re: Camera and pause problem

I'm using the gamestates module from noooway's arkanoid tutorial: local gamestates = {} local current_state = nil local loaded = {} -- doesn't require automatically check for this? function gamestates.state_event(function_name, ...) if current_state and type(current_state[function_name]) == "fu...
by Lirija
Mon Feb 19, 2018 1:17 pm
Forum: Support and Development
Topic: resize image at load
Replies: 4
Views: 4071

Re: resize image at load

Ok i think i got it, thank you for the tips!
by Lirija
Mon Feb 19, 2018 1:13 pm
Forum: Support and Development
Topic: Camera and pause problem
Replies: 4
Views: 2685

Camera and pause problem

Hi everyone! So, i'm making this little game just to check if all the tutorials i've seen so far add up and I wanted to implement a pause screen that shows the game screen underneath this way: -- inside game.lua function game.keyreleased(key) if key == "escape" then love.event.quit() elsei...
by Lirija
Sat Feb 17, 2018 5:13 pm
Forum: Support and Development
Topic: resize image at load
Replies: 4
Views: 4071

Re: resize image at load

First thing first thanks for the answer; 1. do you mean love.graphics.draw(img,x,y,0,scale_x,scale_y) or something like exporting 400% from aseprite? (because i was about to do the latter until i realized that this looked like something a computer could do at runtime and posted the question) 2. Why ...
by Lirija
Sat Feb 17, 2018 3:46 pm
Forum: Support and Development
Topic: resize image at load
Replies: 4
Views: 4071

resize image at load

Hello everyone, i really hope you can help me with this one: basicly i have this 24x24 sprite and the window size is 640x480; i'd like to know if there is a way to load the image bigger as it is, or something like that. (I'm quite a noob so unfortunately i don't even know the terminology / what i sh...
by Lirija
Sat Feb 17, 2018 3:35 pm
Forum: Support and Development
Topic: 'require("Terrain")' doesn't run 'Terrain.lua'
Replies: 1
Views: 1672

Re: 'require("Terrain")' doesn't run 'Terrain.lua'

I can't see the file :/
by Lirija
Tue Mar 14, 2017 3:40 pm
Forum: Support and Development
Topic: Check if player pressed key twice (multiple times)
Replies: 2
Views: 2124

Re: Check if player pressed key twice (multiple times)

Thank you! Now everything works as it should.
(Actually i tried something similiar at first but didn't work; i had defined keypressed after the love.update(dt) though, i don't know if that is relevant )
by Lirija
Tue Mar 14, 2017 12:34 pm
Forum: Support and Development
Topic: Check if player pressed key twice (multiple times)
Replies: 2
Views: 2124

Check if player pressed key twice (multiple times)

How can i check if player pressed a key a number of times? Seems like I can't use love.keyboard.isDown for this one; i tried with love.keyreleased and love.keypressed but i think i don't really understand yet how they work (i believe they re-define the way love behaves as someone press or releases a...