Moving and Rotating group of entities


(Rico Lemba) #1

Hi guys. I’m developing a run 'n gun game using flashpunk right now. In this game, there are some objects that formed of smaller objects, for ex : an ether sword consists of 20 smaller objects. In AS3, this could be done easily by adding smaller objects sprites inside sword object, and the sword movement is easily handled in sword class. Do you guys know how to handle this in flashpunk?

here’s the demo : https://dl.dropboxusercontent.com/u/30158777/anusns.swf

Thanks!


(Bora Kasap) #2

I think you are looking for “FP.anchorTo();” function. But you’ll need relative rotation updater… I don’t know is there a FP function to make that easy…


(Jacob Albano) #4

What about

FP.rotateAround()

?