Menu

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.

Show posts Menu

Messages - Overlord

#1
That might help, I'm just having trouble on where that code would go. That transparency really makes the map look better though. Thanks:)

Edit: Oh wait, got it to work! Thank you so much!

Thanks to everyone else who helped too:D
#2
That didn't work. Thanks though.



Shows the problem.
#3
Edit: Ok, I've got it to work except one thing. When the dot is going across the map, it leaves copies of itself behind, basically creating lines across the map. The code I'm using is

Edit: Made it a room script
// room script file
function room_AfterFadeIn()
{
gMap.Visible = true;
gStatusline.Visible = false;
MapGui = DynamicSprite.CreateFromExistingSprite(167);
MapGui.Resize(60, 60);
gMap.BackgroundGraphic = MapGui.Graphic;
}

function room_RepExec()

{
MapDot = DynamicSprite.CreateFromExistingSprite(168);
DrawingSurface *surface = MapGui.GetDrawingSurface();
surface.DrawImage(player.x/7, player.y/7, MapDot.Graphic);
MapDot.Delete();
}
#4
Thanks for the reply.

Well so far my I've got a gui with a smaller version of the map. And a character that is the like "You are here" dot. If I can figure out how to find the players position, my idea is to divide that how small the Minimap is compared to the large(Say 4 times smaller), and have the dot character take the players position divided by 4. I think it'd work?
#5
For the game I'm working on I have a large room set up like an ocean, and basically the player is a boat. The problem is it's easy to get lost.

I want to make a mini map, so I plan to use a GUI in the top right to show it, but I have no idea how I could show the players position on the map. Any suggestions on how I could do this?
SMF spam blocked by CleanTalk