Game Development Community

Takes damage deals damage

by Anthony Ratcliffe · in Torque Game Builder · 08/09/2008 (3:58 pm) · 4 replies

Correct me if i'm wrong but deal damage works on collision as does takes damage, i've set my enemy with deals damage 10 per hit and my take damage with 10 health

the enemy has send and recieve collison

the player has send and recieve collision send physics

yet no damage is taking place

#1
08/09/2008 (4:12 pm)
Are you sure they're colliding? Perhaps they're on different layers and the collision mask isn't set to collide with that layer.
#2
08/09/2008 (5:31 pm)
Nah there both on layer 0
#3
08/09/2008 (6:16 pm)
OK it seems the game i'm making has corrupted itself because the files work on another game, i was getting a simobject error which has disappeared and am now getting

Settings/Anthony/Desktop/platformer/platfromer/game/data/levels/level1.t2d.

another collison type 0.019767 -0.999805
another collison type 0.019767 -0.999805
another collison type 0.019767 -0.999805
another collison type 0.019767 -0.999805

another collison type 0.999773 -0.021312
DirectInput deactivated.
Shutting down the OpenGL display device...
Making the GL rendering context not current...
Deleting the GL rendering context...
Releasing the device context...
#4
08/11/2008 (11:49 am)
Problems fixed just for an update, i was wondering if theres a way to stop a player moving when there dead

set a count at the top count =0 then in the kill function have count =1

if count == 1
%player linearvelocity = 0

somthing along those lines is this the best way or has it been done simpler