I have just started coding with nml and i dont know everything.
I have added sprites and in game the vehicle looks like a SH '8P' Locomotive (which is a Standard Vehicle)
In the Purchasemenu it is correct.
Spriteset Code:
Code: Select all
spriteset(set_BR423_COACHES_purchase, "gfx\BR423_coaches_purchase.png") {
[ 1, 1, 32, 16, -3, -10 ]
}
spriteset(set_BR423_COACHES, "\gfx\BR423_coaches.png") {
[ 1, 1, 8, 24, -1, -1 ]
[ 10, 1, 22, 20, -1, -7 ]
[ 32, 1, 32, 16, -1, -6 ]
[ 66, 1, 22, 20, -1, -7 ]
}
Code: Select all
graphics {
cargo_capacity: return 72;
additional_text: return string(STR_BR423_COACHES_ADDITIONAL_TEXT);
purchase: set_BR423_COACHES_purchase;
}
Coaches: https://imgur.com/oy0Zdq0
Purchase: https://imgur.com/khR9TIv
Thanks