| 12-28-2006, 03:22 PM | #1 |
I heard this was to be done with Floating Text (texttags). But whenever I do it, I get just text, not fading and rising, as you would see with miss, or receiving gold. How would this be done? |
| 12-28-2006, 03:29 PM | #2 |
JASS:local real x_velocity = TextTagSpeed2Velocity(speed) * Cos(90 * (3.1415 / 180)) local real y_velocity = TextTagSpeed2Velocity(speed) * Sin(90 * (3.1415 / 180)) call SetTextTagVelocity(texttag, x_velocity, y_velocity) call SetTextTagLifespan(texttag, 1.5) //How long before the texttag auto-destroys itself call SetTextTagFadepoint(texttag, .8) //How long before the texttag starts to fade call SetTextTagPermanent(texttag, false) //Got to make sure to do this so lifespan works This is an example of how I've done it before. Hope it can be useful. |
| 12-28-2006, 06:00 PM | #3 |
Oh, thanks a bunch! |
| 12-28-2006, 07:41 PM | #4 |
And a fantastic system that creates great Floating Texts, PitzerMike's splat system. http://wc3campaigns.net/showpost.php...90&postcount=1 |
| 12-28-2006, 07:42 PM | #5 |
that doesn't really use floating texts. |
| 12-29-2006, 09:46 PM | #6 |
Oh yeah, surpose i should have checked it again before i put on the link, it uses images =/, dident remember much about it, just remembered it kicked ass. |
| 12-30-2006, 05:32 PM | #7 |
I use the following to create a floating text like the Miss! text. I use it for when a Rogue successfully backstabs a target: Floating Text - Create floating text that reads BACKSTAB! above (Attacked unit) with Z offset 30.00, using font size 10.00, color (100%,100%,0%), and 0% transparency Floating Text - Set the velocity of (Last created floating text) to 64.00 towards (Facing of (Attacked unit)) degrees Floating Text - Change (Last created floating text): Disable permanence Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds So to sum up: 1) create the text with Z offset, font size, color and transparency 2) give it a velocity if desired 3) disable permanence 4) Give if a lifespan Worked fine for me first time. Take care, Heaven |
