Original Post
I am making a map editor for a simple 2D game, and I came across a problem. I was going to have this code for all 144 image boxes:
Private Sub Image1_Click()
If aLoad Then
Set Image1.Picture = LoadPicture("C:\Chipset\Grass.bmp")
ElseIf bLoad Then
Set Image1.Picture = LoadPicture("C:\Chipset\GreyWall.bmp")
ElseIf cLoad Then
Set Image1.Picture = LoadPicture("C:\Chipset\Mud.bmp")
ElseIf dLoad Then
Set Image1.Picture = LoadPicture("C:\Chipset\DarkRoad.bmp")
End If
End Sub
That only allows 4 tiles per image box so far, and with all 144 image box''s, that will be a ton of code for only 4 tiles. Is there an easier way to do this?
Thanks.