-
Feb 28th, 2006, 03:49 PM
#1
Thread Starter
Addicted Member
map editor
ok i want to make a map editor in which i can have a grid and when the mouse goes over the point i can see the coordinates.
I would like to see what i am placing on the map
Like gamemakers map editor
can anyone just tell me a basic way of doing it
in vb2005
-
Mar 11th, 2006, 07:26 PM
#2
Thread Starter
Addicted Member
-
Mar 12th, 2006, 12:20 AM
#3
PowerPoster
Re: map editor
Learn about tile-based maps.. like here: http://fox.yhoko.com
-
Mar 12th, 2006, 12:23 AM
#4
Thread Starter
Addicted Member
Re: map editor
fake error, plus man get a life.
I thought you would better things to do. but i guess you are just another person with no life.
-
Mar 12th, 2006, 12:55 AM
#5
PowerPoster
Re: map editor
You're lacking a lot of theory here...
1) Store the map tiles in your map array
2) to draw the grid use lines and 2 (x and y) loops like: For X=0 to Width/gridsize
(draw lines at X*gridsize and Y*gridsize)
3) mouse to grid position: mX/gridsize and mY/gridsize
4) mouse to preview position: int(mX/gridsize)*gridsize and int(mY/gridsize)*gridsize
Drawing: First draw the map, then the preview tile from the mouse position (see 4) and finally the grid. Drawing the Map is similar like the grid, except that the x,y loops have to be nested.
Side note: never heard of gamemakers map editor..
Side note: no help heh? --> no search button heh?
Side note: my life's none of your business
-
Mar 12th, 2006, 11:23 PM
#6
Thread Starter
Addicted Member
Re: map editor
well you made that
error 202: question to geric
crap i see you deleted that post.
I guess you see that didnt really sound right.
-
Mar 13th, 2006, 12:13 AM
#7
PowerPoster
Re: map editor
Yay I mis-read your posting the first time and later edited it.. you just replied too fast
-
Mar 13th, 2006, 02:16 PM
#8
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|