Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

[Gm7] Hud editing


Recommended Posts

Hmm.. Well im using this sprHUD.png You would have to cut the time and score out of the sprite and make new ones like so Time_Hud.gif

Score_Hud.gif

Heres the show stat code I use

draw_set_halign(fa_right);
draw_text(view_xview+122, view_yview+10, global.Score); // Score


draw_set_halign(fa_left);
draw_number_zero(view_xview+106, view_yview+26, (global.game_time div 10) mod 100, 2); // Milliseconds
draw_number_zero(view_xview+83, view_yview+26, (global.game_time div 1000) mod 60, 2); // Seconds
draw_number_zero(view_xview+67, view_yview+26, (global.game_time div 60000) mod 60, 1); // Minutes
[/CODE]

You would have to adjust the view_xview and view_yview variables i'll whip the finished code up in a minute.

Edit: Here the code

[CODE]draw_set_halign(fa_right);
draw_sprite(spr_scoreh,0,view_xview+220, view_yview+10);
draw_text(view_xview+320, view_yview+10, global.Score); // Score


draw_set_halign(fa_left);
draw_number_zero(view_xview+106, view_yview+10, (global.game_time div 10) mod 100, 2); // Milliseconds
draw_number_zero(view_xview+83, view_yview+10, (global.game_time div 1000) mod 60, 2); // Seconds
draw_number_zero(view_xview+67, view_yview+10, (global.game_time div 60000) mod 60, 1); // Minutes
draw_sprite(spr_timeh,0,view_xview+16,view_yview+10); [/CODE]

Heres an ss its not perfect you will have to adjust it your self.

Image6-1.gif

the transparency got messed up on the time and score sprites

You can find the original code in the Sonic revival engine I think..

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...