Search found 178 matches

by Ekamu
Thu Jun 24, 2021 5:30 pm
Forum: Support and Development
Topic: Advanced setup with the table variant of love.graphics.setCanvas
Replies: 11
Views: 11244

Re: Advanced setup with the table variant of love.graphics.setCanvas

Thanks a lot, its working now. I've commented out the previews in main so you can see the result. Thanks again.
BlendModes.PNG
BlendModes.PNG (101.2 KiB) Viewed 4628 times
deGen.love
(522.95 KiB) Downloaded 249 times
by Ekamu
Thu Jun 24, 2021 11:49 am
Forum: Support and Development
Topic: Advanced setup with the table variant of love.graphics.setCanvas
Replies: 11
Views: 11244

Re: Advanced setup with the table variant of love.graphics.setCanvas

Yes, I was messing with the code but originally it was like this. Still, It doesn't make a difference. function setCanvas(canvas,imageTable,imageLayers) love.graphics.setCanvas(canvas) love.graphics.clear() for i = 1, #imageLayers do if imageLayers[i] == "skin" then love.graphics.setBlendM...
by Ekamu
Thu Jun 24, 2021 8:43 am
Forum: Support and Development
Topic: Advanced setup with the table variant of love.graphics.setCanvas
Replies: 11
Views: 11244

Re: Advanced setup with the table variant of love.graphics.setCanvas

I am using a function to setup a canvas it works thanks for your help, but I have a specific layer named "skin" that I want to render using blend mode "multiplied" and alpha mode as "premultiplied". It seems when I try set this up in the loop, nothing takes effect and i...
by Ekamu
Thu Jun 24, 2021 7:50 am
Forum: General
Topic: Thank you LÖVE :)
Replies: 4
Views: 6745

Re: Thank you LÖVE :)

Just curious, what exactly disenchanted you from gamedev?
by Ekamu
Wed Jun 23, 2021 3:06 pm
Forum: Support and Development
Topic: Advanced setup with the table variant of love.graphics.setCanvas
Replies: 11
Views: 11244

Re: Advanced setup with the table variant of love.graphics.setCanvas

Ok but I had an issue with setting up a canvas with more than one images drawn at a time? Can you share some example code on how I can set a canvas to draw lets say six images all in one canvas at the same time? Thanks. I understand the encoding and saving part but for some reason I failed to set a ...
by Ekamu
Wed Jun 23, 2021 11:58 am
Forum: Support and Development
Topic: Advanced setup with the table variant of love.graphics.setCanvas
Replies: 11
Views: 11244

Re: Advanced setup with the table variant of love.graphics.setCanvas

I want to set up some kind of layered image that I can export as a single PNG. The purpose is for use in a character generator. So it works by drawing a layered image, each layer draws a variable image that represents a feature of the character such as hair, eyes, clothes e.t.c to be more specific t...
by Ekamu
Tue Jun 22, 2021 5:19 pm
Forum: Support and Development
Topic: Advanced setup with the table variant of love.graphics.setCanvas
Replies: 11
Views: 11244

Advanced setup with the table variant of love.graphics.setCanvas

Advanced setup with the table variant of love.graphics.setCanvas -- Allow love.graphics.stencil calls when drawing to the given Canvas. love.graphics.setCanvas({canvas, stencil=true}) -- Use multiple simultaneous render targets when drawing to several canvases of the Array Texture type, -- and use ...
by Ekamu
Thu Jul 26, 2018 1:58 pm
Forum: Support and Development
Topic: split string help
Replies: 1
Views: 2811

split string help

I want to get a string such as 'Hello World' and store the first two words in variables 'a' and 'b'. function word(str,a,b) --assume str is 'Hello World' for i,j in str:gmatch("%w+") do a,b = i,j --catches I twice the second time its nil end return a,b end the above code will only catch 'W...
by Ekamu
Thu Jul 26, 2018 10:14 am
Forum: Games and Creations
Topic: simple name input
Replies: 2
Views: 3636

simple name input

I wanted to start on a text adventure game so I thought I would start with something very simple like name input. The string you input gets split into two and each word is then trimmed down to remove white space and the first letter is capitalized so for example 'hello world' will become 'Hello' and...
by Ekamu
Thu Jul 26, 2018 9:42 am
Forum: Games and Creations
Topic: 2D platformer
Replies: 4
Views: 6907

Re: 2D platformer

how do you jump?