SpriteMap angle?


(Brad Davies) #1

Hello there, I have been getting back into FP after a bit of a break (and Chevy’s old site went down) and was wondering about the SpriteMap type.

So I have my SpriteMap working wonderfully, but I was wondering if there is a way of rotating a SpriteMap object directly?

It is currently outside of an Entity class so I am adding it directly to a world using addGraphic, and this seems to not let the rotation work.

Would it work by adding as a child of an Entity and then rotating with the angle property?

Thanks. :smile:

EDIT: Oh silly me, minor problem elsewhere caused the angle to not work, but I have it working fine now. Ignore my stupidity above.

Incidentally, how the heck do I removeGraphic?


(Jacob Albano) #2
Graphiclist(graphic).remove(myGraphic);
(graphic as Graphiclist).remove(myGraphic);

Both are equivalent.


(Ultima2876) #3

A removeGraphic function should be added to Entity.


(Zachary Lewis) #4

Write up a feature request!