t2dImageMapDataBlock is invalid!
by rennie moffat · in Torque Game Builder · 12/10/2009 (3:29 pm) · 1 replies
Hi, I have followed a behavior of switchOnCollision. In it is has a behavior field called image, it is an object and is t2dimagedatablock.
this behavior works fine and lovely as is.
What I have done is use the same behaviorfild in my own behavior however I am being told that the "t2dImageDataBlock Datablock is invalid! (picture_17ImageMap)"
Now, I did change my image map from that generic title to PlaneImageMap, however I would not expect that to make a difference.
my line of code for my behaviorfield is
:?que
%template.addBehaviorField(image, "The image to swap to", object, "", t2dImageMapDatablock);
this behavior works fine and lovely as is.
What I have done is use the same behaviorfild in my own behavior however I am being told that the "t2dImageDataBlock Datablock is invalid! (picture_17ImageMap)"
Now, I did change my image map from that generic title to PlaneImageMap, however I would not expect that to make a difference.
my line of code for my behaviorfield is
%template.addBehaviorField(image, "image of object being used", object, "PlaneImageMap", t2dImageMapDataBlock);
:?que
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.
Torque Owner rennie moffat
Renman3000
for some reason it is gone now.
the only thing i was playing with was in the behavior field and subsequent calls of it, was changing it from image to object and back.
Anyhow, she appears to be firing now.
My apologies, tho if anyone has a definite explanation my ears are open.
Thanks.