3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Create Kismet  (Read 143 times)

« on: March 04, 2014, 01:32:31 PM »
Hi

I want Make Kismet for show damage car, but I don't know how can create it in 3drad.

Like Below Picture

Please Guide Me.
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #1 on: March 04, 2014, 01:50:21 PM »
If i understand it, you wanna make something like a marker to show damage. You could use the script of the project i3dlocationtoscreen.

Code: [Select]
void Main()
{
   Vector3 targetLocation;
   Vector3 screenLocation;
   //get car location
   iObjectLocation(OBJ_44,targetLocation);
   //add some offset to car location
   targetLocation.y += 1.5;
   //get corresponding screen location
   i3DLocationToScreen(screenLocation,targetLocation,OBJ_22);
   //place the label there
   iObjectLocationSet(OBJ_0,screenLocation);
}

OBJ_0 is a textprint or a sprite
OBJ_22 is the camchase
OBJ_44 is the car

Try it, i think you will need this :)
See my web:
« Reply #2 on: March 04, 2014, 02:04:46 PM »
Yes Thanks. :D
this is i3DLocationToScreen.3dr, but already I think can't add sprite instead of text.
« Last Edit: March 05, 2014, 01:31:19 PM by behdadsoft »
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
« Reply #3 on: March 04, 2014, 02:40:26 PM »
But I don't wan't zoom in or zoom out the sprite with i3DLocationToScreen Function. there is another Function for that don't change zoom?
« Last Edit: March 05, 2014, 01:31:33 PM by behdadsoft »
My Game : Star Wars 1.0

http://behdadgame.com/index.php?topic=3.0

possible way, if we found will make a way.
Pages: [1]