Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Dark Basic Pro Enthusiast
11
Years of Service
User Offline
Joined: 8th Nov 2013
Location:
Posted: 22nd Jan 2014 17:25
I am currently working on a video game for my school and I really need someone's help. I want to make a main menu that has a button, activated by a mouse click, that goes straight to the first level of my game. I had an idea, but that didn't work too well. I would greatly appreciate any help anyone can give me! Thanks!




P.s I attached the source code for the game, and I realize it looks messy, and it's not much, but we are just beginning to do this project.


SamKM
15
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 22nd Jan 2014 18:19
Well... There are probably better ways to do it, but I can give you a quick example or how I'd do it, which uses sprites. If you haven't covered sprites or functions yet, this might seem a little confusing though... Anyway, here's how I'd do it with a simple program:



Hopefully that's the sort of thing you're looking for! If you need any more help, feel free to ask
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 23rd Jan 2014 20:25
Search the codebase. I've released menu / buttons code in there in the past.

Login to post a reply

Server time is: 2025-05-15 11:05:23
Your offset time is: 2025-05-15 11:05:23