rotating a group makes it disappear.

I’m making a gun turret which is composed of several groups. The base group is seperate from the barrel group.

All is fine until I try and rotate the turretBarrel group.

if I set turretBarrel.rotation = 90, it vanishes from the screen and I get no errors.

Also, if I set turretBarrel:rotate( 90 ), the same thing occurs.

Has anyone encountered this before?

Thanks

Dan [import]uid: 67933 topic_id: 24180 reply_id: 324180[/import]

Did you use setReferencePoint on your groups? [import]uid: 21331 topic_id: 24180 reply_id: 97587[/import]

No, I’ll try that now…

Makes sense now that you’ve said it.

Thanks [import]uid: 67933 topic_id: 24180 reply_id: 97588[/import]

Ok so the display problem is sorted, but now my objects are moving oddly in relation to each other.

Is there a way to set the reference point to the centre of another object? Or a way to offset the reference point by an x/y value?

Thanks [import]uid: 67933 topic_id: 24180 reply_id: 97596[/import]