Game Development Community

TGB 1.7.5 to 1.7.6 Source Rect problem.

by Christopher Evans · in Torque Game Builder · 12/17/2011 (9:09 am) · 5 replies

I just updated my project to 1.7.6 from 1.7.5.

When I ran the game all move players where missing. In TGB "Use SourceRect" was set to selected. I unselected it and tried to run that game again but my players images where still blank. I open my level (level.t2d) and found that sourceRect for each object where set to something like "1 0 6 8" (I cannot remember the real values), instead of "0 0 0 0", what was displayed TGB. I change the sourceRect to "0 0 0 0", and now it works for me.

I figured some one else might have this problem as well.




#1
01/05/2012 (4:18 pm)
We have it here as well...


Any one know how to set the sourcerect in code? I have looked through the reference on the sceneobject and cannot find a method or field for this, i could have looked over it. We really dont want to have to change all this by hand in the editor.


EDIT
Never mind just done a find-replace all on the level files.
#2
01/05/2012 (11:13 pm)
Same problem. Was getting sourceRect = "2 0 6 8" for a lot of sprites but only when loaded into the TGB Editor. Find & replace with sourceRect = "0 0 0 0" fixed.

Thanks for posting!
#3
02/09/2012 (2:57 pm)
Same problem. All the static sprites in my startup scene were changed. So this left a blank screen. All the sourceRect settings went to "1 0 1 6". Replaced them to "0 0 0 0". All is good now.

Ditto above, thanks for posting.
#4
02/11/2012 (4:30 am)
http://www.garagegames.com/community/forums/viewthread/114831

I thought the fix was included in 1.7.6
#5
02/11/2012 (6:38 am)
I'd like to know how to modify this in code as well, would allow us to do some preventative maintenance.