Results 1 to 10 of 10

Thread: vb map editor

  1. #1

    Thread Starter
    Hyperactive Member MeTTa@'s Avatar
    Join Date
    Aug 2005
    Posts
    312

    vb map editor

    using a few threads, i put together this app for making a level and previewing it. The old thread i used to set a picture arry is gone. If you can help me with creating a picutrebox array in this project, it would be greatly aprechiated, thanks,
    ___
    dan
    Attached Files Attached Files

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: vb map editor

    What are you trying to do in your cmdPreview_Click event?

  3. #3

    Thread Starter
    Hyperactive Member MeTTa@'s Avatar
    Join Date
    Aug 2005
    Posts
    312

    Re: vb map editor

    Recreate the level using 15x15 image boxes, (forgot to make grid invisible), not that that matters.

  4. #4
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: vb map editor

    Is it really necessary to create an array with 225 pictureboxes? Don't you want to save the whole Flexgrid picture in only 1 picture?

  5. #5

    Thread Starter
    Hyperactive Member MeTTa@'s Avatar
    Join Date
    Aug 2005
    Posts
    312

    Re: vb map editor

    Sure! If it can be done with minimal confusion, if you know a way, that would be great. Or second thoughts, no, because if i want to change individual images later on (during game), i cant code it as easily. Id like to stick with an array of images.

  6. #6
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: vb map editor

    Quote Originally Posted by MeTTa@
    Sure! If it can be done with minimal confusion, if you know a way, that would be great. Or second thoughts, no, because if i want to change individual images later on (during game), i cant code it as easily. Id like to stick with an array of images.
    Well using just 1 picture is much easier,
    In your Form_Load event add this to MSFlexGrid1 With Block..
    VB Code:
    1. .GridLines = flexGridNone
    So the Flexgrid Gridlines won't be there, then, MSFlexGrid1.Picture is your whole map picture. If you want to save it to file just..
    VB Code:
    1. SavePicture MSFlexGrid1.Picture, "C:\MyMap.bmp"
    If you want to add the picture to a Picturebox..
    VB Code:
    1. Picture4.Autosize = True
    2.     Picture4.Picture = MSFlexGrid1.Picture
    3.     Picture4.Visible = True
    Well, but that hasn't much sense cause the Flexgrid already looks like that, that was just in case you wanted to add the image to a picturebox
    Last edited by jcis; Feb 18th, 2006 at 04:47 AM.

  7. #7

    Thread Starter
    Hyperactive Member MeTTa@'s Avatar
    Join Date
    Aug 2005
    Posts
    312

    Re: vb map editor

    and how can i create images from scratch? (with an array)

  8. #8
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: vb map editor

    Quote Originally Posted by MeTTa@
    and how can i create images from scratch? (with an array)
    What that means? don't understand.

  9. #9

    Thread Starter
    Hyperactive Member MeTTa@'s Avatar
    Join Date
    Aug 2005
    Posts
    312

    Re: vb map editor

    Well if you notice, i have intGrid(0 to 14,0 to 14) can be 1-3 (pic type). For preview i want it to create 255 images, in a array, and depending on the intGrid number, its image will change correctly. (i dont know how to create all those image box's from code)

  10. #10
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: vb map editor

    Ok, I think this is what you were trying to do. I used Image Controls added at runtime. Check out the attachment.
    Attached Files Attached Files

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