Create account / Log in

(java again) how do you rotate a cloned GamePiece?

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

(java again) how do you rotate a cloned GamePiece?

Postby Mu0n » April 25th, 2017, 7:56 pm

I can:

1) Find a PieceSlot using a specific gpid
2) create a GamePiece object by cloning an instance of the PieceSlot
3) create a command to send it to a specific map

but, how can I:

4) access its FreeRotator decorator (or trait as it's known in the editor, like the "can pivot" or "can rotate") so I can set an angle before sending it on a map?
Mu0n
 
Posts: 43
Joined: September 5th, 2013, 5:01 pm

Return to Module Design

Who is online

Users browsing this forum: Google [Bot] and 3 guests