none
Sprite cannot expose type form1.sprite in namespace move png through class form 1

    Question

  • Morning all, this is a piece of code where the label updates itself depending on which sprite I select so for instance I select sprite 1 it will display its HP and AP then Sprite 2 etc.

    it shows a red squiggly line under "Sprite" on the public sub line. 

    Could anyone indicate what am I doing wrong here?

    Public Sub UpdateLabels(Sprites As Sprite)
            Label1.Text = Sprites.HP.ToString()
            Label2.Text = Sprites.AP.ToString()
        End Sub


    WRA

    Thursday, March 23, 2017 9:26 AM

Answers

  • I just realised the solution, Ill close down this debate, basically I could automatically update it by placing the label assignments in a button. So ill still be on square one where I need to mouse click the sprite to attack another sprite rather than using a button which is something I plan on doing. 

    WRA

    • Marked as answer by Waliur Rahman Thursday, March 23, 2017 9:54 AM
    Thursday, March 23, 2017 9:54 AM