Game Development Community

Duplicate behavior conflicts

by Chris Beals · in Torque 2D Beginner · 11/19/2015 (5:23 pm) · 2 replies

I am using behaviors to describe types of movement, but I want to be able to "intensify" that movement by allowing the attachment of multiples of the same behavior to an object. The problem is it is acting off and after several hours of testing, I am wondering if it is a Torque thing that I did not realize. I create a new instance based off of a string list of behaviors that are input from another function. Does it matter if I have multiples of the same behavior on one object? If not, then any ideas?

Any advice would be helpful, I'm sure.

Chris

About the author

Recent CS graduate trying to get a foothold into the videogame industry. I currently am trying to implement interesting applications for a novel AI.


#1
11/20/2015 (6:02 am)
The system wasn't intended to be used this way - it would be easier to make a single behavior and modify the behavior instance on the object instead of adding another instance of the same behavior. Or you can head down the path you're currently on, but that will require more work engine-side to ensure that all of the parts line up properly. Which might be worth your time just for the journey - I don't know if you are under a deadline.
#2
11/20/2015 (9:38 am)
I actually am thinking of just doing the first option. I was hesitant as it would undo a day's work, but I think it would be best. I am under a slight timeline and I don't see much benefit outside of self-learning to alter the engine more.

Thank you though.