Game Development Community

HELP ME!=(

by ggyyggy · in Torque Game Engine · 02/03/2012 (10:38 am) · 5 replies

Terrain that looks like larva?because i am doing some Game in Hell and code for example : when the player touches the fire will have damage on them ! im new and i got a project to do! need help. will be glad if there any expert here

#1
02/03/2012 (10:49 am)
I would recommend looking at the section on triggers in the FPS tutorial documentation. It will show you how to perform a simple action based on entering a trigger. Placing a trigger that decreases the player's health around the fire would do the trick.
#2
02/05/2012 (11:00 am)
okay i try it thanks for your big help!
#3
02/05/2012 (11:22 am)
If using TGE specifically (since this posted in the TGE forum section), it has a water type called lava that will automatically kill a player who steps into it. There is a simple fix to the functions Shapebase::setDamageDt() and Shapebase::clearDamageDt() that will allow gradual damage amounts based on type of lava. I fixed these for T3D but it doesn't have the lava types as part of it's water systems...

So for T3D, the triggers as mentioned by David are probably the easiest way to implement this.
#4
02/05/2012 (7:43 pm)
i see but my Water system must download or? or to get the larva file?
#5
03/06/2012 (5:26 am)
@ggyyggy: Which version of Torque are you using? All versions of Torque should come with Water systems. Like Michael said, TGE comes with a Lava water type, but T3D does not, so depending on which Torque version you have, you may or may not have the lava system.