Destructible Objects.
by Harvey Greensall · in Torque Game Engine · 02/27/2006 (4:21 am) · 1 replies
Hi all,
I was wondering how best to have destructible objects in my game.
I was thinking, would it be crazy to have a load of objects with similar properties to the Korg character in the demo, even though they won't move. ie. I could set up boxes, barrels, even buildings so they have the health bar above and play a 'death anim' of the thing exploding etc. when they've been hit a certain number of times....then they'll respawn after x amount of time..
Does that sound ridiculous? This means my level will be full of static characters that don't fight back but just give you points as you destroy them......I apologise as am not a coder, so am trying to work with stuff out of the box as much as possible.
I suppose IF this is a way to do it, I'd just have to put a load of spawn markers in my level and tell them which shape to spawn there? ...... or something.
I was wondering how best to have destructible objects in my game.
I was thinking, would it be crazy to have a load of objects with similar properties to the Korg character in the demo, even though they won't move. ie. I could set up boxes, barrels, even buildings so they have the health bar above and play a 'death anim' of the thing exploding etc. when they've been hit a certain number of times....then they'll respawn after x amount of time..
Does that sound ridiculous? This means my level will be full of static characters that don't fight back but just give you points as you destroy them......I apologise as am not a coder, so am trying to work with stuff out of the box as much as possible.
I suppose IF this is a way to do it, I'd just have to put a load of spawn markers in my level and tell them which shape to spawn there? ...... or something.
Torque Owner Jason Farmer