Game Development Community

player data

by rennie moffat · in Torque Game Builder · 08/11/2009 (7:11 am) · 2 replies

if I wanted to determine the mass, speed, dampening etc of my player.
Could I, should I put it in the beginning of the player.cs with in the onLevelLoaded function?


About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
08/11/2009 (7:14 am)
oops, my bad,
should be in the
datablock t2dSceneObjectDatablock( player )


So this could go in the player.cs, or better yet, a datablock.cs which holds all databock files for all objects, rocks, players, enemies?
#2
08/11/2009 (7:20 am)
for instance
datablock playerPhysics( player )
{
mass = 10
velocity = 20
accelleration = 10
dampening = 10
}