Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Create event
- t = 0;
- increment = 5;
- amplitude = 5;
- yy = y;
- selected_text = 0
- space = 48
- //Step Event
- if room = rm_mainmenu
- {
- t = (t + increment) mod 360;
- shift = amplitude * dsin(t);
- yy += vspeed;
- y = yy + shift;
- if keyboard_check_pressed(vk_up)
- {
- selected_text -=1
- }
- if keyboard_check_pressed(vk_down)
- {
- selected_text +=1
- }
- if keyboard_check_pressed(vk_enter) and room=rm_mainmenu
- {
- if selected_text=0
- {
- room_goto(Room1)
- }
- if selected_text=5
- {
- game_end()
- }
- }
- }
- //Draw gui event
- draw_set_color(c_yellow)
- draw_set_font(Font1)
- if room = rm_mainmenu
- {
- #region //Yellow text
- if selected_text=0
- {
- draw_text(space*5,space*5+y,"New Game")
- }
- if selected_text=1
- {
- draw_text(space*5,space*6+y,"Load Game")
- }
- if selected_text=2
- {
- draw_text(space*5,space*7+y,"Settings")
- }
- if selected_text=3
- {
- draw_text(space*5,space*8+y,"BLANK ENTRY")
- }
- if selected_text=4
- {
- draw_text(space*5,space*9+y,"BLANK ENTRY")
- }
- if selected_text=5
- {
- draw_text(space*5,space*10+y,"Exit Game")
- }
- draw_text(space*5,space*11,string(selected_text))
- #endregion
- draw_set_color(c_white)
- #region //White Text
- if Menu_handler.selected_text!=0
- {
- draw_text(space*5,space*5,"New Game")
- }
- if Menu_handler.selected_text!=1
- {
- draw_text(space*5,space*6,"Load Game")
- }
- if Menu_handler.selected_text!=2
- {
- draw_text(space*5,space*7,"Settings")
- }
- if Menu_handler.selected_text!=3
- {
- draw_text(space*5,space*8,"BLANK ENTRY")
- }
- if Menu_handler.selected_text!=4
- {
- draw_text(space*5,space*9,"BLANK ENTRY")
- }
- if Menu_handler.selected_text!=5
- {
- draw_text(space*5,space*10,"Exit Game")
- }
- #endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement