Results 1 to 6 of 6

Thread: Loading levels..

  1. #1

    Thread Starter
    Member nXt's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    37

    Loading levels..

    I am making a little game using bit blt. So far i have a little d00de running around a picture box with a few bit blt drawn obstructions. i was wondering if i could store bit blt drawn stuff, say in another form, or module, and when the player reaches the edge of the screen, it loads the level i set up from the other form or whatever.

    can this be done?

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Yes but there are better ways; if you are using a tile based engine ( I assume so ) then consider an array.

    For example:

    Dim Map(50,50) As Integer

    ' a value of 1 means grass, 2 means water, etc.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Member nXt's Avatar
    Join Date
    May 2001
    Location
    UK
    Posts
    37
    do u have an example project or something i could use?

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Email me and I'll send you a sample, its too big for poor VBForums

    PLEASE DO NOT EMAIL ME ABOUT THIS ANY MORE!
    Last edited by mlewis; Dec 7th, 2001 at 06:36 PM.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    any chance of sending that to [email protected] too please

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    There are lots of tile engines demonstrations, I'll name just a few:

    http://www.vbexplorer.com
    http://orion.spaceports.com/~mccloud/
    http://rookscape.com/vbgaming/

    I'd post VB-Den and a couple more too, but I forgot the URL
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

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