When the player gets points, I'd like text to spawn that reads "+x points" where x would vary depending on the amount of points they receive, and fade out shortly after.
My first thought was to use a particlesystem, however Love's particlesystem does not support text. Does anyone know of any alternatives to do this?
Text Acting Like Particles
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- mitchellrivett
- Prole
- Posts: 9
- Joined: Sat Mar 14, 2015 12:10 am
- Location: Canada
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Text Acting Like Particles
you mean besides printing it with either love.graphics.print or love.graphics.printf?
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
- mitchellrivett
- Prole
- Posts: 9
- Joined: Sat Mar 14, 2015 12:10 am
- Location: Canada
Re: Text Acting Like Particles
Specifically the fading out is what makes using that difficult. The player can potentially get lots of points from different sources in a short amount of time, which would trigger multiple instances of "+x points".zorg wrote:you mean besides printing it with either love.graphics.print or love.graphics.printf?
Keeping track of all the values for all the transparency, and motion of the points is a huge pain. The effects I want are easily accessible in the particle system that Love offers, so I was wondering if there is any alternative for text.
Re: Text Acting Like Particles
Do your own "Text Particle System".
Here is a basic emitter I just wrote to demonstrate.
(Edit : updated file) (just smash your left mouse button to see what it does)
Maybe this gives you an idea of what you need to do.
Here is a basic emitter I just wrote to demonstrate.
(Edit : updated file) (just smash your left mouse button to see what it does)
Maybe this gives you an idea of what you need to do.
Last edited by MadByte on Sun Apr 05, 2015 9:35 am, edited 1 time in total.
- mitchellrivett
- Prole
- Posts: 9
- Joined: Sat Mar 14, 2015 12:10 am
- Location: Canada
Re: Text Acting Like Particles
That's exactly what I was looking for! Thank you.MadByte wrote:Do your own "Text Particle System".
Here is a basic emitter I just wrote to demonstrate. (just smash your left mouse button to see what it does)
Maybe this gives you an idea of what you need to do.
Re: Text Acting Like Particles
I just cleaned up the text emitter demo and added basic font support.
Also the usage changed a bit because the previous way to manipulate particle variables wasn't that great.
Edit
I added another method to add a bounce effect to the text. looks pretty cool. Maybe you
can use it somehow.
Demo:
Also the usage changed a bit because the previous way to manipulate particle variables wasn't that great.
Edit
I added another method to add a bounce effect to the text. looks pretty cool. Maybe you
can use it somehow.
Demo:
- mitchellrivett
- Prole
- Posts: 9
- Joined: Sat Mar 14, 2015 12:10 am
- Location: Canada
Re: Text Acting Like Particles
Looking good! Maybe you could put it in the Projects and Demos forum?MadByte wrote:I just cleaned up the text emitter demo and added basic font support.
Also the usage changed a bit because the previous way to manipulate particle variables wasn't that great.
Edit
I added another method to add a bounce effect to the text. looks pretty cool. Maybe you
can use it somehow.
Demo:
Re: Text Acting Like Particles
this is not really a big deal. I may put it onto my own homepage
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests