For the game I'm making, the function to find the level's brick color was reported as an error:
All paths of function GetLevelBrickColor() do not return a value
Function GetLevelBrickColor( Level As Integer ) As String
If Level = Random(1,3) Then
Return "Yellow"
Return "Yellow"Else Return "Blue"
Return "Blue"
End If If Level = Random(4,6) Then
Return "Blue"
Else
Return "Red"
End IfIf Level = Random(7, 9) Then
If Level = Random(7, 9) Then
Return "Red" Else
Return "Yellow"
End IfIf Level = 10 Then
If Level = 10 Then
Return "Purple" End IfEnd Function
End Function
What am i doing wrong? The game is a brick-destroying game
I want these things in it:
- A bonus multiplier for each time a brick is hit with the ball before it bounces off the pad (if posible)
- An enemy that attempts to destroy the paddle
Since this already sounds like a very complex game I would like to get a lot of help
"Only those that risk going too far can possibly know how far they can go." - Class of 2007 motto - Author unknown