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

Leaderboard

Popular Content

Showing content with the highest reputation on 04/01/2010 in all areas

  1. *raises hand* oh oh me! I do! I do! can I has cookie now?! first off you'll need to create the scores to be shown on screen. This is a really simple example: things in brackets ( <,> ) will depend on how you set up your game and will need replacing. code like this will go into your goal rings step event. timebonus = (10 - <minutes_passed> )*1000; ringbonus = ( <rings> * 100 ) totalbonus = ringbonus + timebonus [/CODE] and set an alarm/timer, whatever the fuck its called in game maker. You can do this with just a drag function or with code. then you'll need to draw the display, every draw action will have to go in the object's draw event. I'm going to draw the display with relation to the object, rather then the screen since game_maker changes all of this in various builds. [CODE]draw_set_color(c_white) //<--can change the color draw_set_font(<font you wish to use>) draw_text(x-10,y-25,"TIME BONUS: "+string(timebonus)) //may want to tweak the x and y bits here draw_text(x-10,y+10,"RINGBONUS: "+string(ringbonus)) //here too draw_text(x-10,y+5,"TOTAL: "+string(totalbonus)) //ya here too [/CODE] Now since this does not draw it relative to the screen you may want to stop sonic, or just delete his object (if possible) so that the results stay visible. Then when the timer you set goes off, just send the player to the next level If this still doesn't make much sense try reading game makers help files by pressing F1 in the editor, You'll need to learn code yourself to add in stuff. Games aren't made by taking an engine and slapping levels together with them. You have to spend time trying to learn programing languages and all sorts of tools. There is no easy way to make a good game. I'm honestly surprised I just wrote this shit out for you to be honest. Normally I would have said, "Step one, hit F1, step two figure it out."
    -1 points
×
×
  • Create New...