Search found 113 matches
- Sat Apr 09, 2016 4:05 am
- Forum: Support and Development
- Topic: wait()
- Replies: 8
- Views: 13440
Re: wait()
how can i do this? while true do draw(face1) wait(1) draw(face2) end when ever i try to use wait() it comes up with an error please help with a script in the simplest way i can do this. It's not recommended, but you could try while true do draw(face1) love.timer.sleep(1) draw(face2) end I'm not 100...
- Sat Apr 09, 2016 12:13 am
- Forum: Support and Development
- Topic: How do you make a trail behind a rectangle?
- Replies: 8
- Views: 3295
Re: How do you make a trail behind a rectangle?
Check the example attached. Although i'm going to create a nice WARNING here and say this is probably not the best way of doing this, since i believe the particle system is more optimized. However, it works, and i do the same thing in beatfever since i'm lazy. Yeah thats exactly how I wanted to do ...
- Fri Apr 08, 2016 10:17 pm
- Forum: Support and Development
- Topic: How do you make a trail behind a rectangle?
- Replies: 8
- Views: 3295
Re: How do you make a trail behind a rectangle?
I never really messed with the particle systems. Usually i just create a table with past values and draw a fading rectangle on these old positions. But i guess it is more optimized to do it with particles. Not sure what is wrong though. That kinda what i wanted to do, but I couldnt make it work eit...
- Fri Apr 08, 2016 9:05 pm
- Forum: Support and Development
- Topic: How do you make a trail behind a rectangle?
- Replies: 8
- Views: 3295
Re: How do you make a trail behind a rectangle?
ok its kinda working, but..Manyrio wrote:use canvas, do a canvas on your rectangle then use it for your particles
1) the particles start off screen and im not sure why
2) they kinda spray off in random directions, I want it to trail behind my square no whatever the direction i move it in.
I attached the LOVE
- Fri Apr 08, 2016 6:48 pm
- Forum: Support and Development
- Topic: How do you make a trail behind a rectangle?
- Replies: 8
- Views: 3295
Re: How do you make a trail behind a rectangle?
what if im using love.graphics.rectangle() and not an img?Manyrio wrote:Yes it's normal, if you want to create particle with Löve you have to define some thing
on the wiki, there is a little tutorial :
https://love2d.org/wiki/love.graphics.newParticleSystem
- Fri Apr 08, 2016 5:53 pm
- Forum: Support and Development
- Topic: How do you make a trail behind a rectangle?
- Replies: 8
- Views: 3295
How do you make a trail behind a rectangle?
I want to make a little trailing effects behind a moving rectangle I have, but I don't know how to do it. I know that I should use LOVEs particle system, but I can't get those to work, partly because the wiki doesn't tell me what parameters the particle functions take, like if I use love.graphics.ne...
- Fri Apr 08, 2016 5:10 pm
- Forum: Support and Development
- Topic: Anyone need help with small projects?
- Replies: 19
- Views: 8887
Re: Anyone need help with small projects?
"Lerp" stands for "Linear Interpolation". (https://en.wikipedia.org/wiki/Linear_interpolation). The example attached features a very simple utilisation of such effect. totally didn't spend like 15 minutes pretending the square was chasing me... :D also, thanks for the example, I...
- Fri Apr 08, 2016 4:50 pm
- Forum: Support and Development
- Topic: Anyone need help with small projects?
- Replies: 19
- Views: 8887
Re: Anyone need help with small projects?
I tried doing that and didnt get it to work, never even heard of "lerp" lol "Lerp" stands for "Linear Interpolation". (https://en.wikipedia.org/wiki/Linear_interpolation). The example attached features a very simple utilisation of such effect. totally didn't spend like...
- Fri Apr 08, 2016 4:03 pm
- Forum: Support and Development
- Topic: Anyone need help with small projects?
- Replies: 19
- Views: 8887
Re: Anyone need help with small projects?
AMD Radeon R9 270xHaftSwimmingly wrote:May I ask what graphics card you have?Vimm wrote:Yeah I'm that guy...Sulunia wrote:
I think he's the one who mentioned on some other thread his video card is glitchy, and stuff simply doesn't run well.
- Fri Apr 08, 2016 4:03 pm
- Forum: Support and Development
- Topic: Anyone need help with small projects?
- Replies: 19
- Views: 8887
Re: Anyone need help with small projects?
Instead of directly defining certain values, such as the Y position of the blocks in the blockbreaker example, you instead use a math function to set this value indirectly. BlockY = 30 would be BlockY = 0 --define this in the load BlockY = lerp(BlockY, 30, 0.05 ) -- make sure you run this inside th...