Search found 14 matches

by m0nkeybl1tz
Sun Feb 20, 2022 5:01 pm
Forum: General
Topic: Love2d Timestep and keypress (with repeat) not updating correctly?
Replies: 13
Views: 12903

Re: Love2d Timestep and keypress (with repeat) not updating correctly?

Ahhh good call, it was the vSync. Even at a 30 tick rate it wasn't working, but now it does, thanks!
by m0nkeybl1tz
Sun Feb 20, 2022 12:15 am
Forum: General
Topic: Love2d Timestep and keypress (with repeat) not updating correctly?
Replies: 13
Views: 12903

Re: Love2d Timestep and keypress (with repeat) not updating correctly?

Sorry to dig up an old thread, but I'm trying to implement some physics in my game and I think a fixed timestep might help, however when I add this to my main.lua file it completely tanks the framerate. Is there something I'm doing wrong?
by m0nkeybl1tz
Mon Jan 24, 2022 12:25 am
Forum: Support and Development
Topic: is it necessary to "free" texture data / love.graphics.Image ?
Replies: 9
Views: 9305

Re: is it necessary to "free" texture data / love.graphics.Image ?

This thread saved my life! I'm drawing to and sampling from a canvas every frame, and I was having my framerate drop in half every few seconds. Calling Object:release() on my ImageData stopped it from spiking, as well as saved me 5 FPS overall.
by m0nkeybl1tz
Mon Jan 10, 2022 8:54 pm
Forum: Support and Development
Topic: How to match collisions with object data?
Replies: 2
Views: 1473

How to match collisions with object data?

Hey all, I'm trying to make a basic top down game, and part of that is detecting collisions. However, depending on the object collided with, I want different behaviors. For example, if the player collides with a box, I want to destroy the box. If they collide with an enemy, I want them to take damag...
by m0nkeybl1tz
Tue Nov 16, 2021 4:50 am
Forum: Support and Development
Topic: Combining STI and procedural content?
Replies: 1
Views: 2791

Re: Combining STI and procedural content?

Well, I feel silly. I figured out that even though STI comes with a bump.lua script, it doesn't fully implement BUMP. Instead, you need to download and add BUMP separately, then you can call world:add (I was doubly confused because love.physics.world and bump.world implement some, but not all, of th...
by m0nkeybl1tz
Tue Nov 16, 2021 1:30 am
Forum: Support and Development
Topic: Combining STI and procedural content?
Replies: 1
Views: 2791

Combining STI and procedural content?

Hey all, I just started playing around with STI and find it's super easy to set up a map using Tiled. However, I want parts of my game to be procedural (for example, placing items at random locations) and I'm having a hard time adding items to the STI map after it's initialized. For example, I creat...
by m0nkeybl1tz
Mon Oct 11, 2021 9:30 pm
Forum: Support and Development
Topic: Having issues fading things out gradually
Replies: 5
Views: 4994

Re: Having issues fading things out gradually

Ah that's hilarious, that explanation totally makes sense. The extra challenge I have is I actually want the screen to be constantly darkening -- not fading out between 100% opacity and 0% so I can't use a fixed timer. However, I think the suggestion of fading it out every x frames instead of every ...
by m0nkeybl1tz
Sun Oct 10, 2021 3:54 am
Forum: Support and Development
Topic: Having issues fading things out gradually
Replies: 5
Views: 4994

Having issues fading things out gradually

Hey all, having a weird issue and I'm not exactly sure what's wrong. I want to have an effect where a canvas gets darker over time, and my solution has been to switch to Subtract blend mode, and draw a white rectangle at low opacity. The problem is, if the opacity goes too low it doesn't draw at all...
by m0nkeybl1tz
Sun Sep 19, 2021 7:46 pm
Forum: Support and Development
Topic: Drawing one canvas on top of another?
Replies: 3
Views: 4691

Re: Drawing one canvas on top of another?

Ah yup, looks like I forgot to actually draw the ImageData. Duh :death:

Thanks for the help!
by m0nkeybl1tz
Sun Sep 19, 2021 4:30 am
Forum: Support and Development
Topic: Drawing one canvas on top of another?
Replies: 3
Views: 4691

Drawing one canvas on top of another?

Right now, I'm working on an effect where the player leaves a trail as they walk. I want the trail to be persistent so I don't clear it every frame, but I also want it to have some transparency and the problem is that the trail keeps drawing on top of itself every frame until it's no longer transpar...