Search found 3 matches

by interested_party
Tue Apr 01, 2025 2:30 am
Forum: Support and Development
Topic: Selecting and moving a singular object contained in a list
Replies: 4
Views: 225

Re: Selecting and moving a singular object contained in a list

Update: had an issue where if you moved too fast the mouse would escape the card boundaries and the card would stop following the mouse. Changed it to where love.mousepressed() and love.mousereleased() are call in the main.lua file and change a boolean in the according card. this means that once a c...
by interested_party
Tue Apr 01, 2025 2:00 am
Forum: Support and Development
Topic: Selecting and moving a singular object contained in a list
Replies: 4
Views: 225

Re: Selecting and moving a singular object contained in a list

Thanks so much! I added a boolean for if the mouse was over a card and a seperate for if the mouse button is down. and only changed positions if both were true. I have to fix the dealing position issues still but I understand the issues there! Here's the new move() code: function Card() return { len...
by interested_party
Sun Mar 30, 2025 5:22 am
Forum: Support and Development
Topic: Selecting and moving a singular object contained in a list
Replies: 4
Views: 225

Selecting and moving a singular object contained in a list

I'm a very new love2d/lua user. I have been tinkering around with it the past day, trying to figure out some basics. I've watched a couple tutorials as well, but I learn best by doing and really understanding exactly what is happening in my code. I've been tinkering with simple card game mechanics (...