Search found 10 matches

by m0nkeybl1tz
Tue Nov 16, 2021 4:50 am
Forum: Support and Development
Topic: Combining STI and procedural content?
Replies: 1
Views: 1364

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: 1364

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: 2874

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: 2874

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: 2623

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: 2623

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...
by m0nkeybl1tz
Thu Jun 09, 2016 1:25 am
Forum: Support and Development
Topic: An explanation of Classes in Lua for people coming from an Object-Oriented background
Replies: 6
Views: 2446

Re: An explanation of Classes in Lua for people coming from an Object-Oriented background

Huh, that's super interesting, thanks for sharing! It's crazy how flexible Lua is...
by m0nkeybl1tz
Wed Jun 08, 2016 1:35 am
Forum: Support and Development
Topic: An explanation of Classes in Lua for people coming from an Object-Oriented background
Replies: 6
Views: 2446

Re: An explanation of Classes in Lua for people coming from an Object-Oriented background

Good call on the self stuff, I just went back and changed it. And yeah, I know there's been a good amount of help/advice on the topic, but I had a hard time finding one document that covered everything in one place.
by m0nkeybl1tz
Tue Jun 07, 2016 8:36 pm
Forum: Support and Development
Topic: An explanation of Classes in Lua for people coming from an Object-Oriented background
Replies: 6
Views: 2446

An explanation of Classes in Lua for people coming from an Object-Oriented background

Hey guys, so I've recently been looking into how to implement class-like functionality in Lua, seeing as that's what I'm used to (coming from a Unity/C# background). I got the implementation working, but I really struggled with understanding the logic behind them. I think I finally have a grasp of h...
by m0nkeybl1tz
Fri Jan 22, 2016 3:41 am
Forum: Support and Development
Topic: Trying to make my own gravity and it's driving me nuts...
Replies: 2
Views: 876

Trying to make my own gravity and it's driving me nuts...

So this isn't really a LOVE question, it's more just general math, but I'm using LOVE to do it so I figured I'd post here first. I'm trying to make an endless runner that is strongly physics-based, and right now I'm just working on getting a character to go up and down hills, slowing down when they'...