TextureRegion and glowing tail effect

Anything libgdx related goes here!

TextureRegion and glowing tail effect

Postby desunit » Sun Apr 15, 2012 12:57 pm

Hi,

I'm trying to implement a glowing tail for my TextureRegion and can't figure out how it could be done. Let's assume that I have TextureRegion with a circle, this circle is drawing from left side of the screen to the right side using SpriteBatch. I want to display glowing tail (the same like asteroid tail) which disappears after certain amount of time.

One of the idea which I have to draw TextureRegion with different amount of alpha - 0.1, 0.2, till 1.0 and increasing x value at the same time. Is there other better way for it?
desunit
 
Posts: 4
Joined: Sun Apr 15, 2012 12:44 pm

Re: TextureRegion and glowing tail effect

Postby tescott » Sun Apr 15, 2012 1:14 pm

Sounds like you might want to investigate Particle Effects.

http://www.badlogicgames.com/wordpress/?p=1255

--tim
tescott
 
Posts: 484
Joined: Tue Apr 12, 2011 2:32 am

Re: TextureRegion and glowing tail effect

Postby desunit » Sun Apr 15, 2012 6:22 pm

Thanks for reply. I remember your DB42 game :) nice one! Did you use the same Particle System to display yellow beam:
https://lh5.ggpht.com/Mk2NBmspJogaTA76p ... LYbbzAeYkk
desunit
 
Posts: 4
Joined: Sun Apr 15, 2012 12:44 pm

Re: TextureRegion and glowing tail effect

Postby tescott » Sun Apr 15, 2012 6:27 pm

Exactly! :)

I released Pyromancer's Lab last week -- it is pretty much based around jacking around with Particle Effects and coming up with neat effects. Might give you insight on different things you can do. Check out my .sig for a link.

--tim
tescott
 
Posts: 484
Joined: Tue Apr 12, 2011 2:32 am


Return to Libgdx

Who is online

Users browsing this forum: Balkep, Driant, Google [Bot], Majestic-12 [Bot], thejimster and 4 guests