Pretty Nifty Minimap... (O.o)

Talk about making games.

Pretty Nifty Minimap... (O.o)

Postby Hblade » Sun Jun 27, 2010 5:21 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby lcl » Sun Jun 27, 2010 5:45 pm

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

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

Postby Hblade » Sun Jun 27, 2010 6:56 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby lcl » Mon Jun 28, 2010 12:50 pm

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest