creating a start menu
Blitz3D Forums/Blitz3D Beginners Area/creating a start menu
| ||
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? |
| ||
Get Sprite Candy. |
| ||
Agreed, if you can afford it, it's definitely worth buying. It comes with a great bitmap font editor, and handles all your GUI needs (buttons, clickable text, scrolling text, input fields) http://www.x-pressive.com/SpriteCandy/index.html |
| ||
Hmm, I'll check it out |
| ||
You can also try FONText, which is free. Or nSprite2, which... er... isn't. :) |
| ||
Remove the CLS line... splashscreen HAS to have PURE BLACK (0,0,0) color to make it transparent. Try saving as BMP instead as JPG. |
| ||
This is weird, The sprite still isn't showing after I load it, (not during the start menu function), and if I try to load the .bmp version of the background it says there is no image. |