I have a game i'm working on just for fun to fool around in QB with. The techniqiue i use is to have each indiviual file as a 16x16 GET/PUT thing, and then have a 'map' of a bunch of these 'tiles'. Anyway, when a user, say, destroys a chest, I want the tile formerly known as chest to become a floor tile. I could edit the map then redraw it, but that adds a very amateurish look to the program. Instead, I want to re-put the image onto the same spot (thus negatting the first image and creating a blank space), and then put the new image in its place. To do this, I created a function that called ToggleTile, with two parameters, the position of the tile (1 = above you, 2 = right, etc.) and the name of the tile. When I declare my 'tiles' I use DIM SHARED floor(256). In my function, when I need to PUT the images, I need the array name that I have to put. I defined my SUB as ToggleTile(tilenum%, tilename(256)). I then passed in one of my 'tile' images, but it gave me a parameter mismatch error. How can I fix that? Thanks
-Mike -Mike
-Mike -Mike