Search found 50 matches

by bramblez
Sun Jun 02, 2013 12:02 pm
Forum: Support and Development
Topic: [Solved] Problem with canvas and afterwards drawing.
Replies: 5
Views: 2209

[Solved] Problem with canvas and afterwards drawing.

Hello, there dear LOVERs :) So basicly I have this "button" table, for creating buttons for menu. And I also use canvas to change resolutions of the window, I am facing a problem drawing button again on the new resolutions. Image of a button scales and moves according to the changed resolu...
by bramblez
Tue May 28, 2013 10:27 am
Forum: Support and Development
Topic: [Solved] Fade in and fade out
Replies: 6
Views: 4540

Re: [Not Solved] Fade in and fade out

I'll try to figure out the way to separate fade in and fade out on my own, but I guess for the sake of everyone else someone can post the solution here :)
by bramblez
Tue May 28, 2013 9:40 am
Forum: Support and Development
Topic: [Solved] Fade in and fade out
Replies: 6
Views: 4540

Re: [Not solved] Fade in and fade out

that thing is making it right, but

Code: Select all

lightup = 127 + (127 * math.sin(time_1))
is there a proper way of doing this? please help :>
by bramblez
Tue May 28, 2013 9:13 am
Forum: Support and Development
Topic: [Solved] Fade in and fade out
Replies: 6
Views: 4540

[Solved] Fade in and fade out

Hello. I've been wondering how to make image fade in and fade out? function love.load() time_1 = 0 light = 0 image = love.graphics.newImage("tree.png") end function love.update(dt) time_1 = time_1 + dt light = 255 * math.sin(0.5 * time_1) end function love.draw() love.graphics.setColor(255...
by bramblez
Thu May 23, 2013 6:14 am
Forum: Support and Development
Topic: [Solved] Pixel effect transparency
Replies: 5
Views: 1854

Re: [Solved] Pixel effect transparency

Something like this ;) You can tweak different variables to get better look, but overall it works just like i wanted :)
by bramblez
Wed May 22, 2013 5:50 pm
Forum: Support and Development
Topic: [Solved] Pixel effect transparency
Replies: 5
Views: 1854

Re: [Solved] Pixel effect transparency

Thank you very much! that is very helpful! I will try to lure what i need out of it :)
by bramblez
Wed May 22, 2013 8:03 am
Forum: Support and Development
Topic: [Solved] Pixel effect transparency
Replies: 5
Views: 1854

Re: [Solved] Pixel effect transparency

Apparently cTextureScreen.a is alpha value for transparency, but i still can't manage to draw certain colored objects beneath the picture with pixel effect. Is it possible to draw something UNDER the image with pixel effect? What i want is basicly draw everything in the game and than draw a png imag...
by bramblez
Wed May 22, 2013 7:28 am
Forum: Support and Development
Topic: [Solved] Pixel effect transparency
Replies: 5
Views: 1854

[Solved] Pixel effect transparency

Hello. I am trying to figure out pixeleffect :) in the code below you will find an effect of an old tv screen. my question is about transparency, how do i add it to this effect? i tried vec4 cTextureScreen = Texel(tex, tc) * color but it's not what i need at the end. Also, when i am using .png image...
by bramblez
Sun Feb 10, 2013 5:25 pm
Forum: Support and Development
Topic: [Solved] Trying to make a simple platformer
Replies: 3
Views: 2821

Re: [solved] Trying to make a simple platformer

That helped! thanks alot! :)
by bramblez
Sun Feb 10, 2013 4:09 pm
Forum: Support and Development
Topic: [Solved] Trying to make a simple platformer
Replies: 3
Views: 2821

[Solved] Trying to make a simple platformer

Hello everyone, I am trying to make a platformer game and I was watching goature's tutorial videos about making one and I followed his every step, except I've tried to make my own menu too. I keep getting this same error all the time "attempt to call field 'clamp' ( a nill value )" what am...