Page 1 of 1

Pretty Nifty Minimap... (O.o)

PostPosted: Sun Jun 27, 2010 5:21 pm
by Hblade
Hey heres a minimap xD I made it :o Its not acurate though because I have absolutely no idea how to do the math on a minimap but heck it works as long as you have your canvas size 201x122 xD

Heres the code for it :o
Code: Select all
erase(0, 0, 0, .99);
draw_from("actor name", actor_name.xscreen/3.2, actor_name.yscreen/4, .3);


replace actor name with the actor you want to be drawn :o
minimap.JPG

Re: Pretty Nifty Minimap... (O.o)

PostPosted: Sun Jun 27, 2010 5:45 pm
by lcl
This is very much like mine in Angry Potatoes... :D (you maybe had the idea from it... :D)
Code is also nearly like in it. I haveinstead of xscreen and yscreen the actors x and y. I think xscreen and yscreen are better for moving minimap and x and y for minimap like mine. :D

Good work! :D

Re: Pretty Nifty Minimap... (O.o)

PostPosted: Sun Jun 27, 2010 6:56 pm
by Hblade
Yeah the idea is from yours xD But I have no idea how to do it with x and y, because the positions become distorted O.o

Re: Pretty Nifty Minimap... (O.o)

PostPosted: Mon Jun 28, 2010 12:50 pm
by lcl
While using x and y for this, you must look that canvas and view positions are 0, 0, and then that will work, 'cause then any actor will not go to minus position while canvas will not draw it. :D