How to create fog of war??

  • 12 years ago

    Hi everybody, i´m making a game in 2d, and im using commandbuttons as tiles.

    I´ve been trying to find a way to hide all buttons outside a range, and keep the ones allready discovered visible.

     

    If TypeOf ctl Is CommandButton Then
        ctl.Visible = False
    End If

    this is the only thing i have for that so far, but i need to make sure that it doesnt make all buttons invisible.

     If you have any ideas on how to do this, i would be glad to hear from you.

    Kind Regards

    Feigling86

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We better hurry up and start coding, there are going to be a lot of bugs to fix.”