jeudi 27 juillet 2017

Problems with else

i am a vb.net programmer and i am developing a metal furnace to my game but i cant figure out why else isn't working.

If p2 = True And tmpmoldeatual = "p2" Then
        Label10.Hide()
    Else
        Label10.Show()
    End If

The labe is flickering at the rythim of the time where this code is placed. p2 means if that pickaxe cast is crafted and tmpmoldeatual is the current cast in a craftable casts list. I want to hide the "Make this cast" label when the cast is crafted without hidding them from the rest of the casts.

Aucun commentaire:

Enregistrer un commentaire