beginBitmapFill

10 views
Skip to first unread message

Aurelijus Venclovas

unread,
Jul 8, 2015, 4:21:53 PM7/8/15
to haxef...@googlegroups.com


Is it possible to draw filled polygon with bitmap like it was possible in  flash with beginBitmapFill().

I'm trying to get 2d side scrolling terrain filled with image like in those bike/truck games.

Or maybe there is other way to make terrain/polygon filled with bitmap? Or it's not possible at all? Will it work on android?

Gama11

unread,
Jul 8, 2015, 4:35:47 PM7/8/15
to haxef...@googlegroups.com, a.ven...@gmail.com
Sure, the flash API is available. FlxSpriteUtil wraps most of the Graphics methods for convenient use with FlxSprite. There's also a FlxSpriteUtil.drawPolygon().
Reply all
Reply to author
Forward
0 new messages