Game Development Community

Variables of Behavior

by rennie moffat · in Torque Game Builder · 06/12/2009 (12:30 pm) · 2 replies

Hi there,
I am working on the Rainy DAy Tut.
In it, there is a plant, and we have assigned it the "PLantGrowthBehaviour",

My question is, inside we have several variables...
Moisture
minMoisture
maxMoisture
LowMoisture Threshold
DryRate
WateringRate


I am wondering, these variables, how does the program now what they are and how to react? Are these variables that exist in some vast library of pre made variables or, are they simply named, and titled by this one programmer?


Thanks,
thinking about future projects.
ren

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
06/12/2009 (12:32 pm)
oops, sorry I think I may have found it. More code breaks down specifically whats, ifs and elses, with > < type stuff.

Thanks.

#2
06/24/2009 (3:10 pm)
further studies...



%template.addBehaviorField(projectile, "The projectile to clone and shoot", tileMapImageMap, "", t2dSceneObject)


this behavior (part of shoots.cs behavior) its has a variable field in the TGB console. However its variable, fill in the blank field is empty. There are no pre made selections, I thought my static sprits would be an option. However there is not. I can type it in, but I just ended up typing in the imageMap title of what I wanted. However, nothing was shot when tested. tho I am still early in my test behavior, anyone have any thoughts?

ren