I have tried this over and over again and it will not work is there anybody that can tell me what to do please? There are no errors, it just wont take any health off or display the status.
If speed#>2 And EntityCollided(plane,TERRAIN) Then status$="SOFT COLLISION" : health=health-1
endif
If speed#>10 And EntityCollided(plane,TERRAIN) Then status$="MEDIUM COLLISION" : health=health-5
endif
If speed#>15 And EntityCollided(plane,TERRAIN) Then status$="HARD COLLISION" : health=health-10
endif
If speed#>20 And EntityCollided(plane,TERRAIN) Then status$="DEADLY COLLISION" : health=health-50
endif
This Code will work though.
If EntityCollided(plane,TERRAIN) Then
status$="SOFT COLLISION" : health=health-1
endif
If speed#>2 And EntityCollided(plane,TERRAIN) Then status$="SOFT COLLISION" : health=health-1
endif
If speed#>10 And EntityCollided(plane,TERRAIN) Then status$="MEDIUM COLLISION" : health=health-5
endif
If speed#>15 And EntityCollided(plane,TERRAIN) Then status$="HARD COLLISION" : health=health-10
endif
If speed#>20 And EntityCollided(plane,TERRAIN) Then status$="DEADLY COLLISION" : health=health-50
endif
This Code will work though.
If EntityCollided(plane,TERRAIN) Then
status$="SOFT COLLISION" : health=health-1
endif