[VB.Net]Skill System
Posted: Sun Mar 20, 2011 10:16 pm
ChaosOverLord's Tutorials Present....
Skill System In VB.Net
Have you ever wanted to create a game with the Runescape skills?
Well today is your day because here is the tutorial you will love!
First add 1 button and 2 labels to our form...
Name label 1 Level
Name label 2 EXP
Name button 1 Give Me EXP!
Now lets get coding!
Go and declare 2 new more variables using these codes
Dim exp As Integer
Dim level As Integer
Now for form load put
exp = 0
level = 1
label1.text = "Level: " & level
label2.text = "EXP: " & exp
Button 1 use this code
exp += 1
Label2.Text = "EXP: " & exp
If exp = 8 Then
level = 2
Label3.Text = "Level: " & level
Else
If exp = 16 Then
level = 3
Label3.Text = "Level: " & level
End If
End If
This will let you go to level 3 once you have 16 EXP
Skill System In VB.Net
Have you ever wanted to create a game with the Runescape skills?
Well today is your day because here is the tutorial you will love!
First add 1 button and 2 labels to our form...
Name label 1 Level
Name label 2 EXP
Name button 1 Give Me EXP!
Now lets get coding!
Go and declare 2 new more variables using these codes
Dim exp As Integer
Dim level As Integer
Now for form load put
exp = 0
level = 1
label1.text = "Level: " & level
label2.text = "EXP: " & exp
Button 1 use this code
exp += 1
Label2.Text = "EXP: " & exp
If exp = 8 Then
level = 2
Label3.Text = "Level: " & level
Else
If exp = 16 Then
level = 3
Label3.Text = "Level: " & level
End If
End If
This will let you go to level 3 once you have 16 EXP