Delta Hedgehog Posted February 7, 2010 Report Share Posted February 7, 2010 I need a little help. I want to change the hud by shifting the score counter to the top Right of the screen and shifting the time/rings counter to the top left. How do I change the code in order to achieve my goal? Link to comment Share on other sites More sharing options...
Slow_Motion Posted February 7, 2010 Report Share Posted February 7, 2010 Hmm.. Well im using this You would have to cut the time and score out of the sprite and make new ones like so 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. the transparency got messed up on the time and score spritesYou can find the original code in the Sonic revival engine I think.. Link to comment Share on other sites More sharing options...
Delta Hedgehog Posted February 8, 2010 Author Report Share Posted February 8, 2010 Thanks. These same codes apply to MMF2, right? Link to comment Share on other sites More sharing options...
Slow_Motion Posted February 8, 2010 Report Share Posted February 8, 2010 Thanks. These same codes apply to MMF2, right? Of course not. Link to comment Share on other sites More sharing options...
Rael0505 Posted February 8, 2010 Report Share Posted February 8, 2010 Well, the same concept would apply. You'd just need to translate it all to MMF's event editor. Link to comment Share on other sites More sharing options...
Recommended Posts