Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - BruceJillis

Pages: [1]
releases / FlxMinimap
« on: Sun, Sep 9, 2012 »
Hey Everyone,

Inspired by the good example Gama11 gave here earlier with his awesome FlxTrail class, I would also like to give something back to the community, namely the minimap that I developed during the last bacongamejam that I participated in. I decided to showcase it by adding it to the excellent flixel tilemap feature demo. Without further ado:

<a href="" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win"></a>

Using it is as simple as adding these few lines:
Code: [Select]
   miniMap = new FlxMinimap(collisionMap, FlxG.width - 75 + 3, 3, 75, 50);
   miniMap.follow(player, 0xffff0000); // follow the player in red
which tells the minimap to render the collisionMap FlxTilemap at x, y = (FlxG.width - 75 + 3, 3) with w, h = (75, 50) and follow the player in red. Check out the sourcecode on if you'd like to know more.

Pages: [1]