Questions about real-time texture changing...
by Okashira · in Torque Game Engine · 07/05/2006 (11:48 am) · 3 replies
Alright, I had an idea for my game I am currently desiging for when I purchase the Torque engine. It will be kind of an FPS...Well, anyways here is my question:
I would want it so the more armor your character has(like in a normal style FPS, not like an inventory or anything), the texture will change to different things and depending on how low your helath is a different texture will cahnge to different things. How hard would this be to implement?
Thanks,
Okasihra
I would want it so the more armor your character has(like in a normal style FPS, not like an inventory or anything), the texture will change to different things and depending on how low your helath is a different texture will cahnge to different things. How hard would this be to implement?
Thanks,
Okasihra
About the author
#2
07/05/2006 (11:58 am)
It's already implemented. Try doing a search for setSkinName. The main requirement is using specific naming conventions for the textures. Then you can just set the textures determined on your health or whatever you want.
Torque Owner Claude-Alain Fournier
But if you like something good you will need to dig into the engine to apply the necessary changes for the ressource and link this to you inventory/health system.
If you use meshes swapping then you can attain some very good results.
But don't expect this to be ready made for you, you will need to work a bit on the code.
Hope that this answer your question.