Search found 9 matches

by Amatereasu
Fri Oct 11, 2024 6:13 pm
Forum: Support and Development
Topic: clipping
Replies: 3
Views: 8236

Re: clipping

Stencils, by default, consider the entire area of an image as part of the stencil - they don't cut out the transparent parts automatically. For that you'll need a basic shader. The wiki page for love.graphics.stencil has an example under "Using an Image as a stencil mask". hi steve c: it ...
by Amatereasu
Fri Oct 11, 2024 3:56 pm
Forum: Support and Development
Topic: clipping
Replies: 3
Views: 8236

clipping

hello! i have a UI element here split into 3 parts, a background, the liquid edge, and the border, and i want to mask the red part so that it doesnt go over the edge, and stays confined to the actual image 2024-10-11_08-38.png i tried a few methods for this with some help, but none of them worked my...
by Amatereasu
Sun Oct 29, 2023 3:29 pm
Forum: Support and Development
Topic: UTF-8 encoding error when erasing accent characters
Replies: 5
Views: 25160

Re: UTF-8 encoding error when erasing accent characters

zorg wrote: Sun Oct 29, 2023 12:19 pm ...
i did actually try this, with no luck, same error
by Amatereasu
Sun Oct 29, 2023 9:48 am
Forum: Support and Development
Topic: UTF-8 encoding error when erasing accent characters
Replies: 5
Views: 25160

Re: UTF-8 encoding error when erasing accent characters

Each UTF-8 character above the ASCII range consists of a byte in the range C0-FF followed by one or more bytes in the range 80-BF (the exact range is a bit more restricted but that's irrelevant here). If you don't remove all the bytes from the character, you get an error like the one you're getting...
by Amatereasu
Sun Oct 29, 2023 5:08 am
Forum: Support and Development
Topic: UTF-8 encoding error when erasing accent characters
Replies: 5
Views: 25160

UTF-8 encoding error when erasing accent characters

hello :) im working on a tool for encoding XML animation data, and part of that is typing in the name of an animation or such, im using love.textinput(text) to detect key input and put it into a variable, state.commandprev and i have a backspace function using love.keypressed(key) to string.sub(stat...
by Amatereasu
Sat May 13, 2023 4:19 pm
Forum: General
Topic: Memory leak..... Help....
Replies: 3
Views: 1369

Re: Memory leak..... Help....

Please dont post videos of such questions. First glance, i dont see what you mean, thats how Lua operates normally. But if you want to have your code sanity checked, you need to paste code. the memory usage rises and rises until it just crashes my PC lol some maybe obvious questions, but: - are you...
by Amatereasu
Sat May 13, 2023 8:09 am
Forum: General
Topic: Memory leak..... Help....
Replies: 3
Views: 1369

Memory leak..... Help....

I have a memory leak in my game.. :'3
I'm not techincally versed in this stuff, how do I fix this?
I think its caused by mismanaged sprite data
https://cdn.discordapp.com/attachments/ ... -02-48.mp4
Will provide any code or anything else
by Amatereasu
Wed May 10, 2023 2:37 pm
Forum: General
Topic: Help spawning objects?
Replies: 2
Views: 969

Re: Help spawning objects?

darkfrei wrote: Wed May 10, 2023 2:25 pm

Code: Select all

objects= {}

function newObject (x, y, vx, vy)
  local obj = {x=x, y=y, vx=vx, vy=vy}
  return obj
end

table.insert (objects, newObject (1,2,3,4))
table.insert (objects, newObject (2,3,4,5))
lotsa words, thank you! ill try this when i get home to my PC
by Amatereasu
Wed May 10, 2023 6:55 am
Forum: General
Topic: Help spawning objects?
Replies: 2
Views: 969

Help spawning objects?

hello! ^^ i started learning Lua and Love a few days ago, and ive been working on a rhythm game project that i've always wanted to make anyway. ive looked around for this and it all seems pretty complicated and shit just goes over my head when theres so many words in front of me XD and i have to try...