OK, I have a background image that covers the whole screen, but I can't seem to be able to get sprites to show over that image to use as buttons.
The code I have set up to just have the screen without any buttons is this:
Function Main_Menu()
camera = CreateCamera()
start_menu = LoadImage("GUI\start menu\splashscreen.jpg")
ResizeImage start_menu,screen_width,screen_height
Repeat
;replace with clicking the start button
If MouseHit(1)
Game_Mode = Main_Game
FreeImage start_menu
Exit
End If
If KeyHit(esc_key) Then End ;quit game
UpdateWorld
RenderWorld
Cls ;clear the screen for image
DrawImage start_menu,0,0
mouse_setup()
;WRITE ALL TEXTS HERE
Flip
Forever
End Function
What could I do to add the buttons?
The code I have set up to just have the screen without any buttons is this:
Function Main_Menu()
camera = CreateCamera()
start_menu = LoadImage("GUI\start menu\splashscreen.jpg")
ResizeImage start_menu,screen_width,screen_height
Repeat
;replace with clicking the start button
If MouseHit(1)
Game_Mode = Main_Game
FreeImage start_menu
Exit
End If
If KeyHit(esc_key) Then End ;quit game
UpdateWorld
RenderWorld
Cls ;clear the screen for image
DrawImage start_menu,0,0
mouse_setup()
;WRITE ALL TEXTS HERE
Flip
Forever
End Function
What could I do to add the buttons?