Game Development Community

BindCmd and bindObj

by Glenn Prince · in Torque Game Builder · 03/27/2008 (2:34 pm) · 3 replies

I was reading another post on keyboard bindings with behaviors which brought up something I meant to ask about a while ago. I haven't tried this recently, but when I was playing around with behaviors the other day I was looking at the bindCmd rather than using bindObj, mainly because I prefer to see key down / key up items. Was there a specific reason the bindCmd was not made available within a behavior ? I am guessing you could get around this by using the bindCmd after you have created your object behavior but that seems like a PIA to me.

#1
03/27/2008 (3:19 pm)
I've used bindCmd within a behavior and it works fine. If you run into trouble with it, feel free to post your code and I'll try to help.
#2
03/27/2008 (4:23 pm)
I'll post it up when I get home tonight (approx 7 hours)
#3
03/30/2008 (2:24 pm)
Well I went through all my messed up code snippets I have around the place (Got a little side tracked and started cleaning them up, then started mucking about with expanding some sandboxing I had been doing).

Anyways, I couldn't find the code I had that wasn't working with bindCmd so I'll have to re-visit trying to get it to work again at some stage soon. I'll post it up here if/when I do try again.