All Questions
610
questions
1
vote
1
answer
22
views
Movement problems in pong clone using lua LOVE engine
I'm new to LOVE and I'm trying to make a pong clone to get familiar with the engine. I made the first paddle move using .isDown, but for some reason the second paddle is moving too.
Any help is ...
0
votes
0
answers
50
views
Love 2d - match 3, I get a stack overflow
main.lua:147: stack overflow
Traceback
[love "callbacks.lua"]:228: in function 'handler'
main.lua:94: in function 'matches'
main.lua:80: in function 'checkforNil'
main.lua:89: in function '...
0
votes
2
answers
45
views
Lua Love2D, CS50's Introduction to Game Development, knife library Timer.tween syntax
I'm working through the CS50 intro to game dev course and I'm having a syntax error I've been beating my head against.
I'm trying to write a function using the knife timer library that will be called ...
0
votes
0
answers
77
views
undefined global lov2d not working in vs code
so i downloaded love2d and its in program files and added it to the environment variables and opened vs code and downloaded the extension of love2d support and i did everything like the video on ...
0
votes
0
answers
40
views
error ''undefigned symbol: lua_rawgetp'' while trying to bind a love project with rust
I have a love2d project where I am trying to bind midi controllers with rust and mlua rust library,
I have this file configuration :
.
├── conf.lua
├── data/
├── fonts/
├── icon.png
├── images/
├── ...
1
vote
1
answer
34
views
Comparing multiple values in a table makes it that it choses to compare only one randomly
I am making a tetris clone in love2d (lua) for practice. And what I am trying to do is to make the collins with the walls.
Note:the tetris pieces are made out of tiles that each one has a relative ...
1
vote
0
answers
36
views
setuserdata and getuserdata in lua
I'm trying to run code that spawn 2 squares affected by gravity. When they hit each other, they just get destroyed using setuserdata and getuserdata. When I try to getuserdata, I get a nil value. What ...
1
vote
1
answer
50
views
How to stop a scroll in löve2d?
For my fnaf fan game project. I coded a prototype. But I've got problem for the scrolling, I've tried to stop it but I can't. So if someone can help it could be great !
That's the code (only update ...
1
vote
0
answers
46
views
Why is the x value in my lua table changing after being created by a for loop?
I am trying to make a chess game in love2D, and I am presently trying to generate 8 black pawns in the 7th row, but they all end up in at the last spot of the row.
A picture of (seemingly) 1 pawn in ...
0
votes
1
answer
261
views
How to get the position of a moving object once? without it being updated
I have an object moving "freely" with body:applyForce( x, y ).
I want to track it's previous position.
I set a timer and with every second that goes by i get the position of the moving ...
0
votes
0
answers
58
views
CS50G Pong Project: Pong-2
So in Pong-2 for the CS50G game development course, they use a function called love.graphics.clear() for their pong game. However, when I ran the program with this function, all I got was a giant ...
1
vote
1
answer
304
views
Love2D does not run in VSC
I installed LOVE2D into the program files path, I added it to the environment variables, and I installed LOVE2D Support into Visual studio code. Why are the variable still showing up with the error &...
1
vote
1
answer
178
views
how can i fix diagonal movement being faster than normal movement? (lua/love2d)
When I move diagonally, the movement becomes faster, I know why this happens I just dont know how to fix it.
function love.update(dt)
if love.keyboard.isDown("w") then player.y = player....
2
votes
1
answer
62
views
image not loading over others in pause state
I am trying to create a pause function in my CS50G fifty-bird problem set. However, the image I have to come up is behind the pipes and bird when it is rendered. I am new to using Love2d and Lua but I ...
1
vote
1
answer
42
views
Generating tables with unique addresses
I am attempting to insert a series of tables that have values generated by a function. I have noticed that the generated tables all have the same address and thusly only the most recently generated ...