Search found 8 matches

by cloudfrog
Tue Mar 15, 2022 1:04 am
Forum: Support and Development
Topic: [Solved] Draw before update?
Replies: 3
Views: 2216

Re: Draw before update?

My draw is only one line of code so it was simple to 'if' the problem away short term. I'm going to go back and implement next state. That looks and feels right for the project.

Thank you both for the simple and effective solution.
by cloudfrog
Mon Mar 14, 2022 6:15 am
Forum: Support and Development
Topic: [Solved] Draw before update?
Replies: 3
Views: 2216

[Solved] Draw before update?

Got myself in a pickle here. Go easy, I'm still wearing my noob badge :) I have a few game "states" that I'm using ("INTRO", "MENU", "GAME"). I am aware of state machines and such, but for this project I am not using any external libs other then to recursively...
by cloudfrog
Mon Mar 14, 2022 5:37 am
Forum: Support and Development
Topic: [SOLVED] Gamepad mapping
Replies: 7
Views: 4059

Re: [SOLVED] Gamepad mapping

Sorry I didn't see the notification. Yes, I misunderstood how the documentation was organized. I was looking at functions like you said here: https://love2d.org/wiki/love.joystick , which almost everything was removed in 0.9.0. I was trying a few outdated examples, so it seemed everything I tried re...
by cloudfrog
Tue Mar 08, 2022 11:48 pm
Forum: Support and Development
Topic: [SOLVED] Gamepad mapping
Replies: 7
Views: 4059

Re: Gamepad mapping

Thank you, loading the file fixed the problem right away. Ive been tied up with work and couldn't try 8t sooner. This also has me wondering. Is there a way to create the mapping in game? You know, detect that something was pressed, and assign it to what the user want? Any methods i looked at where e...
by cloudfrog
Sun Mar 06, 2022 10:22 pm
Forum: Support and Development
Topic: [SOLVED] Gamepad mapping
Replies: 7
Views: 4059

Re: Gamepad mapping

Correction: I said I was using love 11.4 by mistake. I'm using 11.3 (Ubuntu / Mint 20.2). Thank you for the reply and the link. This is helpful. I did not come across that link in the wiki. Mostly hopping back and forth between various methods of love.joystick. And anything I find in google points ...
by cloudfrog
Sun Mar 06, 2022 5:32 pm
Forum: Support and Development
Topic: [SOLVED] Gamepad mapping
Replies: 7
Views: 4059

[SOLVED] Gamepad mapping

I am using two joysticks. The first one works perfectly, but the second I'm not having any luck (JOY2 / PS3USB) below. Using jstest outside of the game I can confirm both joysticks work fine. Buttons are mapped the same as well. But in love, i can't seem to get anything to work besides recognizing t...
by cloudfrog
Mon Feb 21, 2022 8:24 pm
Forum: General
Topic: [Solved] (typo) How can I save a list of args in a variable, and call a function with it?
Replies: 5
Views: 3983

[Solved] (typo) How can I save a list of args in a variable, and call a function with it?

Ok... I'm sorry this was lack of coffee on my part. My first thought was that I already tried exactly that (pass the table as the args). and i did! However in the code where i populate the table I actually had: Settings.debugCollisionColor = { 228/255, 6,255, 38/255 , 1} Rather then an error, i was ...
by cloudfrog
Mon Feb 21, 2022 8:52 am
Forum: General
Topic: [Solved] (typo) How can I save a list of args in a variable, and call a function with it?
Replies: 5
Views: 3983

[Solved] (typo) How can I save a list of args in a variable, and call a function with it?

A sample is worth a thousand words. Take the following line: love.graphics.setColor( 228/255, 6/255, 38/255, 1) I want to define my color value elsewhere, and then set it when needed. I don't want to have to store r,g,b,a separately though. Below is what I would like to do, just not sure exactly how...