|
Post by commended on Jun 2, 2016 7:49:41 GMT
Hi all,
I know I've been abusing the forum recently, and I'm sorry about that. I won't post anything for a while after this. But I want to make floating health counters above each enemy to give the game an old school vibe.
It's been achieved you can see indicators saying attack or defend towards the end of the trailer here.
Anyone know how to achieve this?
P.s If you don't know I've learnt how to do the health print and death stuff. I just need it to follow the camera...
Thanks In Advance:)
|
|
|
Post by Thunder on Jun 2, 2016 15:12:32 GMT
Is this your game?!
|
|
|
Post by Power Supersport on Jun 2, 2016 15:45:20 GMT
Use the i3DLocationToScreen()...
Link the target object, then the text object, then the camera...
Vector3 Target; Vector3 Text; void Main () { iObjectLocation(OBJ_0, Target); i3DLocationToScreen(Text, Target, OBJ_44); iObjectLocationSet(OBJ_22, Text); }
|
|
|
Post by commended on Jun 2, 2016 19:04:00 GMT
|
|
|
Post by commended on Jun 2, 2016 20:21:39 GMT
|
|