I don't know if you know a programming language already.Where you have to declare variables like this:
| CODE |
int CarHealth; float Car_X_Coord; |
You don't have to do that most of the time in Sanny Builder. Sanny Builder knows that this returns an int for example:
Also the right structure is:
| CODE |
var // Declare something end //<-- important |
This is impossible in scm coding.
| CODE |
| Car.Health(0@) = 2@+4@ |
You'll need to do this.
| CODE |
2@ += 4@ Car.Health(0@) = 2@ |
And use low structures
or high structures:
| CODE |
//Low :MAIN4 wait 0 if Player.Defined($PLAYER_CHAR) jf @MAIN4 wait 100 Player.InfiniteRun($PLAYER_CHAR, true) 0A93: end_custom_thread
//High (1) :MAIN3 wait 0 if Player.Defined($PLAYER_CHAR) then Player.InfiniteRun($PLAYER_CHAR, true) 0A93: end_custom_thread else jump @MAIN3 end
//High (2) :MAIN2 while true wait 0 if Player.Defined($PLAYER_CHAR) then Player.InfiniteRun($PLAYER_CHAR, true) 0A93: end_custom_thread end end |
And don't forget to use wait 0 in loops