Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
Sukasa Posts: 1304/2068 |
You're welcome
I'm pretty good with most of VB6 (Well, 'cept microsoft ocntorls tha tdon't function correctly), so I can help you if you need it. |
KeiiChi Kun Posts: 102/190 |
:O Thanks! This is great, it means I don't have to have a bulky folder full of tiles, thanks again. |
Sukasa Posts: 1293/2068 |
You're welcome
And, if you are using the resource editor add-in (I'm assuming you're using something like VB6 Professional or whatever and have access to that via the add-ins menu), you can access images in the resource file with the line "LoadResPicture(PictureID)", or something along those lines, replacing PictureID with the ID of the image you want to laod, which makes my first example become Select Case Offset
|
KeiiChi Kun Posts: 101/190 |
Thanks a lot |
Sukasa Posts: 1256/2068 |
Select Case Offset
Case 0 Image1.picture = loadpicture(image1filename) case 1 Image1.picture = loadpicture(image2filename) . . . End Select. Is this example, Offset ithte name of a variable, and image1 is the example imagebox control that would be modified And if you need an offset form a file, "Get #1, xxxx, Offset" will work. #1 is the file number of a file opened with "Open filename for Binary As #1" or any other number, and xxxx is the offset in the file. |
KeiiChi Kun Posts: 100/190 |
I was working on a Map Editor, but I fucked up the entire tile loading system, so I scraped it. Now I wanna know how to load a certain image depending on the value of a certain offset (for obvious reasons) in VB6. Any input would be good, thanks. |