Game Development Community

delayed reaction

by rennie moffat · in Torque Game Builder · 05/11/2010 (6:23 pm) · 3 replies

HI I have a behavior. It is applied to 7 identical objects. Each object via the behavior, simply moves back and forth from each respective point 1 to 2 to 1 to 2 forever. It is very important that they stay in synch. Each distance, from 1 to 2 is equal so they are all locked, except for one.


With out going into much detail beyond that, and insuring that all proper setting are set, I am wondering is there any logical reason for this?






In the case I am talking about the one "bad" one, simply delays its start time, by the time it starts it has falling out of synch. but as I say, it uses the same behavior, has the correct physics setting etc. I am wondering would load time be an issue?

Just wondering.
thanks.

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
05/12/2010 (12:57 am)
I don't think you can guarantee when a behavior will start. Even if 6 happen to be working right now, it may not work on somebody else's computer. And if the distances are even a fraction of a unit off, they will become out of synch over enough time.

The solution requires that you NOT use behaviors. Or, in a horrible atrocity of a pinch, you could tie the behaviors together with global variables.
#2
05/12/2010 (4:58 am)
Using behaviors can become a crutch, especially for new programmers. They work like magic and are wonderful but when someone jumps right in without understanding how namespaces really work, problems persist. Without good trouble shooting skills, its easy to get lost frequently. Its as if we discovered a primitive tribe in the Amazon that has no concept of the bow and arrow and we give them assault rifles to play with.
#3
05/12/2010 (7:42 am)
hmmm really? @kevin re: amazon tribes


ok, well, I know the units are exact (spaces between) so no problem there. It just seems odd since the one item, I deleted, recreated, from scratch a few times and the exact same thing.


@william, knowing what you know of what I am trying to do, how would you "tie everything in with global variables"?