Game Development Community

Flying up score image

by Funky Diver · in Torque Game Engine · 12/19/2004 (3:06 am) · 2 replies

Greetings,

I would like to make a small effect of a flying up score, like in some RPG (esp. Japanese) when a monster was hit and the applied damage value shows up and flys up, dissapearing.

How can it be possible done in Torque? Particles?
It seems, that I need to do the following:
1) Create a texture in memory
2) Write a number on the texture
3) Create a particle (? I'm not sure...)
4) Set the new texture to the particle (how to apply a texture in memory to the particle datablock?)
5) Add particle to the scene (monster position)


And I completely have no idea how to do 1-2 and 4.

Any ideas?

Thank you!

Alex.

#1
12/20/2004 (5:50 am)
Im not sure if i get you correctly or not, but if you used particles for the damage score they may be hard to read at a distance... what might work is a GUI control similar to the crosshair, but slowly moves up and fades out upon creation. this way it would never be in the "world" meaning it will always be readable to the player no matter the distance... but it make not be the effect you want. come to think of it, i downloaded the rocket bowl demo yesterday and they do this with their "dollar pins" i didnt pay much attention as to whether it was 2d in the GUI or in the 3d world
#2
12/24/2004 (3:06 am)
I've got the idea ;)

void GuiShapeNameHud::onRender( Point2I, const RectI &updateRect)
function is the key.