Search found 510 matches

by MrFariator
Sun Nov 19, 2023 2:33 pm
Forum: Games and Creations
Topic: Gravity Circuit
Replies: 14
Views: 11938

Re: Gravity Circuit

Thanks for the heads up, I don't actively use macOS, so I didn't quite realize that issue with the threads (truth be told, the threading is some ancient legacy code that could use an overhaul). I was turning JIT off on MacOS on the main thread, due to some potential luajit issues . Will look at addi...
by MrFariator
Sun Nov 19, 2023 2:17 pm
Forum: Support and Development
Topic: [solved] Animation - For Limit Must Be A Number
Replies: 10
Views: 10077

Re: Animation - For Limit Must Be A Number

In lua, # is the length operator. It returns the length of a string or table. I recommend looking up what the reserved keywords and operators are. PIL (the manual I linked) is a good resource to read through if you want to learn lua.
by MrFariator
Mon Nov 13, 2023 2:22 am
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 3992

Re: Adjusting hitboxes using bounce

Ah, right. That's simply because you add the character to the world with this: world:add(player,player.x+1,player.y+1,player.width-2,player.height-2) But then you move the character with this: local goalX = player.x + (player.speed*player.xdir*dt) local goalY = player.y + (player.speed*player.ydir*d...
by MrFariator
Sun Nov 12, 2023 2:14 pm
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 3992

Re: Adjusting hitboxes using bounce

Can you provide a .love of your project? I believe I would need to see your project in action to properly diagnose what the problem is, because I don't see anything wrong with the bump code.
by MrFariator
Sun Nov 12, 2023 7:41 am
Forum: Support and Development
Topic: How to reference Bump's "bounce variable
Replies: 5
Views: 1795

Re: How to reference Bump's "bounce variable

Yeah, filters are the bread and butter of how to make your bump objects behave the way you want them. If you tried to pass bounce as an underfined variable (global or otherwise), or leave the parameter empty (nil), bump will register any and all collisions. Depending on the type of function, these c...
by MrFariator
Sun Nov 12, 2023 7:18 am
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 3992

Re: Adjusting hitboxes using bounce

Can you provide more code? These snippets shouldn't affect the size of the collision box present in the bump world, after it has been added. Are you using any other bump functions on your player object, like world:update? Also keep in mind, that if you want your collision box to be one pixel smaller...
by MrFariator
Sat Nov 04, 2023 5:29 pm
Forum: Support and Development
Topic: More filesystem questions
Replies: 5
Views: 6269

Re: More filesystem questions

love.filesystem.createDirectory creates the requested directories. However, if the directories already exist, the function basically does nothing. The return value (boolean) will tell you if the request was a success (created/exists) or not (could not create directory).
by MrFariator
Fri Nov 03, 2023 11:08 pm
Forum: Support and Development
Topic: How to reference Bump's "bounce variable
Replies: 5
Views: 1795

Re: How to reference Bump's "bounce variable

Going to need to see more code to properly inspect what the issue could be. Can you provide a minimal working example? At the very least, going to need to see what your collision filter is ("bounce" in your code), and how you have defined your entities (the contents of "listofBad"...
by MrFariator
Fri Nov 03, 2023 3:27 am
Forum: Support and Development
Topic: How to reference Bump's "bounce variable
Replies: 5
Views: 1795

Re: How to reference Bump's "bounce variable

When you are looping through the collisions, you're accidentally using the wrong variable to access the list of collisions: for i = 1, len do if cols[v].bounce.x > v.x then -- the '[v]' should be '[i]' -- ... end end In addition, it might be wise to first check that the collision response is a bounc...
by MrFariator
Sun Oct 29, 2023 3:26 am
Forum: Support and Development
Topic: Fixed screen in Menori
Replies: 1
Views: 2883

Re: Fixed screen in Menori

I'm not familiar with Menori, but I presume you can render its output (and any other things you need) onto a canvas. You can then figure out the biggest rectangle that respects the desired aspect ratio, and then render the canvas to the screen with those dimensions.