Help with my "RPG"?

Blitz3D Forums/Blitz3D Beginners Area/Help with my "RPG"?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm not sure what the meaning is of a lot of the code, it seems pretty messy to me:

Function leveldraw() 
image$=background1

If image$=background1
If KeyHit(17) ;w
image$=background3
EndIf
EndIf 

If image$=background3
If KeyHit(17) ;w
image$=background5
If KeyHit(30) ;a
image$=background4
If KeyHit(31)
image$=background1
EndIf
EndIf
EndIf
EndIf 



Background1 Background2 etc. ARE ALL THE SAME Image ("background.bmp")
And in the snippet above, you are seeing if "image$" (A string) is equivalent to the Image handle?

Also the entrie funciton begins with:
image$=background1

If image$=background1
If KeyHit(17) ;w
image$=background3
EndIf
EndIf 


So Image$ WILL ONLY BE = background1, meaning the only possible outcome is that w must be pressed in order to change the value of Image$ to further affect the following If's... Very unlikely anyone has reflexes quick enough to press the 'correct' keys in the 'correct' order to achieve much.