Game Development Community

RC2 (fixed) Edit> collision > layer/groups

by Alex Rice · in Torque Game Builder · 06/01/2006 (7:08 am) · 1 replies

[edit: This is fixed in RC2 I could not replicate the problem any more]


Basically this GUI control over the collision [edit: layers] is totally broken. I assume the Collision groups is just as bad although I have not tested it in RC1.

To replicate:

Go to a sprite Edit > collision > layer

Bug #1. There is some kind of gui event bug- click around a little bit sometimes the selected buttons spontaneously change. This seems to be a gui related but could easily be caused by bug 2 as well:

Bug #2- Settings are saved incorrectly. Turn off all layers except leave 0, 15 and 31 selected (blue button = selected). Save level file see a negative number- this is supposed to be a BITS() mask right so the value should be, I am assuming BITS("0 15 31") -> 2147516417. Instead what is written to file is a negative number:

Quote: CollisionLayers = "-64";

Restart TGB and go back to sprite. Now layers 6 through 31 are selected. Change selection back to 0, 15 and 31 only. Resave layer. Cannot get it to save & reload correctly.

Previous bug report: www.garagegames.com/mg/forums/result.thread.php?qt=44873