Results 1 to 8 of 8

Thread: map editor

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    182

    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

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    182

    Re: map editor

    no help heh?

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Re: map editor

    Learn about tile-based maps.. like here: http://fox.yhoko.com

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    182

    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.

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    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

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    182

    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.

  7. #7
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Re: map editor

    Yay I mis-read your posting the first time and later edited it.. you just replied too fast

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Maryland
    Posts
    182

    Re: map editor

    ok
    no prob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width