Here are some snippets from two of my earlier games
or
or
or
and also,
or at the end of an if .. endif statement
and some more
After looking through a lot of my code I just realised I probably don't comment often enough, but fortunately with my code it is pretty easy to follow, I think.
Else ;that was odd we shouldn't have done this... RuntimeError("Update Creatures: PlayerStruck.PlayerObject = null") EndIf
or
If pressfire<>0 And pressaltfire<>0 Then ;nothing here yet as not sure what exactly should be performed at this point.... EndIf
or
If Target.PlayerObject=Null Then ;do nothing - it may have already died or been removed by another attack or something, is okay.
or
If (Player\PreviousFourSquares[0]=Player\PreviousFourSquares[2] And Player\PreviousFourSquares[1]=Player\PreviousFourSquares[3]) Then ;do nothing out of the ordinary... Else
and also,
If player\isboss=True Then ;end mean and nasty sorceress code goes here. Not very modular or pretty but it should work hopefully... ; ; ;
or at the end of an if .. endif statement
EndIf ;able to do stuff
and some more
;need to acquire these values from somewhere, not hard coded either Emitter\QuadUpperV=EmitterData\QuadUpperV Emitter\QuadLowerV=EmitterData\QuadLowerV Emitter\QuadLeftU=EmitterData\QuadLeftU Emitter\QuadRightU=EmitterData\QuadRightU
After looking through a lot of my code I just realised I probably don't comment often enough, but fortunately with my code it is pretty easy to follow, I think.