Game Development Community

Rotation bug with tileLayers?

by Phillip O'Shea · in Torque Game Builder · 10/11/2007 (10:15 am) · 0 replies

Okies, I came across this rather weird bug today, whereby duplicated tile layers act quite crazy.

Step 1: Create and save a tileLayer,
Step 2: Select, copy and paste it into the editor,
Step 3: Apply rotation settings to ONE of the layers,
Step 4: Save and run.

In the game, you will find that both of the layers have the same rotation settings, despite only applying the setting to one of the layers.

If you save your level and restart TGB, you will then see that both object have indeed been rotated. From here, select one of them and change the rotation to 0. Save and run, you will see that everything is fine now.

So, I suspect it is a minor problem with the level objects? Maybe?

I managed to duplicate with a few times with tileLayers, but the method did not work for regular t2dSceneObjects.

About the author

Head of Violent Tulip, a small independent software development company working in Wollongong, Australia. Go to http://www.violent-tulip.com/ to see the latest offerings Violent Tulip.