Thanks for your suggestions on Sailing Course Challenge. At the moment, I am trying a different approach which is to skip the whole tiling issue and simply treat the islands as moving sprites in the scrolling universe. Seems to work very well, only the backround has to be very untextured for the illusion to work. Anyway, that's what I'm playing with now, but I appreciate your assistance and may need more if I switch back to tiling.
coolkid17657: Yeah, this is not the most useful calculator. I just wanted to show the 'combo boxes' I made in action. That's hopefully the cooler part of this project. You can use these selectors in your own projects, they have many uses- change the number of players, the difficulty level, the color of the pen... they're not just for calculators.
Sakani, yeah that part is kind of trick, you'll notice the first thing is does is that that when it's clicked, it checks to see if the costume is the blue highlight. If it is, then it knows the combo box is open and the user just made a selection. then it uses the current position as the selection. Sorry it's kind of confusing... there's probably a better way to do that.
I have not figured out how to make a down arrow yet, without making another set of costumes- one with the down arrow, or have all of them with down arrow, and just overwrite all of them when the menu is drawn... but that would slow it more. Perhaps I'm missing something, but I think the best option now, is to make it look like a button. put the embossed edge on the background? You're welcome to try.
I was thinking of making one of these for my perpetually unfinished Scratch GUI system. I got stuck with these because I didn't know how to keep the current selection displayed in the closed combobox. Great job, I'm deifintely going to find uses for this!
chomesmuhao: This made your daughter flip out/go crazy? I'm confused. I think this is about as mild as they come. Sorry, but all my applications come with no warranty or liability. Use at your own risk!
This project does math based on selections in the combo boxes.
Just click them to change the values.
Combo boxes are selectors you often see in website forms and applications. They make it easy to select information.
I made this combo box for a tutorial system and other projects I'm working on. I wanted it to be all-in-one so it's easy to drop into projects.
It's pretty easy to modify, just change the costumes. If you change the number of choices or location, change the values above the script then double-click to run it.
-----Feel free to use this in your projects. Please let me know if you improve it
HOW IT WORKS: Everything is in one sprite. There are costumes for each of the options, There's also a check-mark and a blue selection highlight costume.
When clicked, it stamps so that the current option stays at the bottom, then it moves up, changes costumes and stamps for each of the options. So that it draws all of the options. then moves to and stamps a check mark at the current selection.
The sprite then changes to the blue highlight, and turns on the ghost effect so it's partially tra
Comments
You need to be logged in to post comments
Add a Comment
1 | 2
Great now I can do my maths homework!
(view all replies)Comment Reply
COOL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
(view all replies)Comment Reply
Nice one. I like the way you reduced its graphic resources to minimal.
(view all replies)Comment Reply
very cool!
(view all replies)Comment Reply
Thanks for your suggestions on Sailing Course Challenge. At the moment, I am trying a different approach which is to skip the whole tiling issue and simply treat the islands as moving sprites in the scrolling universe. Seems to work very well, only the backround has to be very untextured for the illusion to work. Anyway, that's what I'm playing with now, but I appreciate your assistance and may need more if I switch back to tiling.
(view all replies)Comment Reply
well i'll do this tomarrow, right now i'm working on a shape/grid/math/HARD!!!! project (and it's hard!)
(view all replies)Comment Reply
dude i hope u don't mind but i'm going to try to make this support th formula's (or something like that)
(view all replies)Comment Reply
(link to project)
(view all replies)Comment Reply
cooooooooooool check out my projects
(view all replies)Comment Reply
Thanks! The costumes really are 16 pixels tall, I'm not sure why it says 20px.
(view all replies)Comment Reply
I love it! I see why its in top loved!
(view all replies)Comment Reply
6 divided by 7 equals 0.857143
(view all replies)Comment Reply
I have a question. Why does it move 16 pixels when acoording to the costumes, their 20 pixels tall?
(view all replies)Comment Reply
cool! check out my calculator.
(view all replies)Comment Reply
did you check out my new circle guy game?
(view all replies)Comment Reply
Sweet add from wadler1:(link to project)
(view all replies)Comment Reply
nice UI design!
(view all replies)Comment Reply
if I needed to add i would use a calcualtor that went higher but this is good enough.
(view all replies)Comment Reply
coolkid17657: Yeah, this is not the most useful calculator. I just wanted to show the 'combo boxes' I made in action. That's hopefully the cooler part of this project. You can use these selectors in your own projects, they have many uses- change the number of players, the difficulty level, the color of the pen... they're not just for calculators.
(view all replies)Comment Reply
It's one of the wurst calculators i ever has seen! Search at coolkid17657 and you will find a much better one! (my browser)
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
Cool beans. Just 5/5 and it works very nicely, well done.
(view all replies)Comment Reply
Great project!
(view all replies)Comment Reply
cool
(view all replies)Comment Reply
This is really nice! Very clean, I love it!
(view all replies)Comment Reply
impressive and well kept. it's a very neat design, no flashy distractions, just to the point. also very efficiant.
(view all replies)Comment Reply
IT'S BEAUTIFUL!
(view all replies)Comment Reply
(link to project)
(view all replies)Comment Reply
a very good project. Thanks addZero.
(view all replies)Comment Reply
wierd, the sound works online for me...
(view all replies)Comment Reply
NICE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! P.S. THBBBBBBBBBBBBBBBBBBT!!!!!
(view all replies)Comment Reply
sweet!
(view all replies)Comment Reply
COOL!
(view all replies)Comment Reply
(link to project) The first ever Scratch Newspaper.
(view all replies)Comment Reply
awesome calculator! way better than mine... :(
(view all replies)Comment Reply
why is it called 'gui' combo box calculater?
(view all replies)Comment Reply
nerdy
(view all replies)Comment Reply
ditto (what jens said)
(view all replies)Comment Reply
Excellent user-interface study, neatly scripted, too! I added this project to my "Eureka!" gallery, hope you don't mind...
(view all replies)Comment Reply
wow good for home work
(view all replies)Comment Reply
Great job! Sound didn't work for me after I downloaded it. Graphics are great and I'm sure others will use this in their projects.
(view all replies)Comment Reply
AWSOME!
(view all replies)Comment Reply
Sakani, yeah that part is kind of trick, you'll notice the first thing is does is that that when it's clicked, it checks to see if the costume is the blue highlight. If it is, then it knows the combo box is open and the user just made a selection. then it uses the current position as the selection. Sorry it's kind of confusing... there's probably a better way to do that.
(view all replies)Comment Reply
I have not figured out how to make a down arrow yet, without making another set of costumes- one with the down arrow, or have all of them with down arrow, and just overwrite all of them when the menu is drawn... but that would slow it more. Perhaps I'm missing something, but I think the best option now, is to make it look like a button. put the embossed edge on the background? You're welcome to try.
(view all replies)Comment Reply
what i just dont get is how u click it and it becomes what u select. I just dont get the notes on that part. Could u help me out with that
(view all replies)Comment Reply
One suggestion: I would make the closed box have a little downward facing arrow so people recognize it as a combobox.
(view all replies)Comment Reply
I was thinking of making one of these for my perpetually unfinished Scratch GUI system. I got stuck with these because I didn't know how to keep the current selection displayed in the closed combobox. Great job, I'm deifintely going to find uses for this!
(view all replies)Comment Reply
i could make this but it's such a unique idea!
(view all replies)Comment Reply
WHOA!!! great idea!
(view all replies)Comment Reply
Thanks! Sure! You can use it for whatever you like.
(view all replies)Comment Reply
Good idea, indeed! I love it.
(view all replies)Comment Reply
Can i use this in my os Spaces?
(view all replies)Comment Reply
Nice.
(view all replies)Comment Reply
that is so cool! i was thinking about something like this the other night, thought i could make it, even though i know i cant. sweet!!
(view all replies)Comment Reply
nice ;)
(view all replies)Comment Reply
cool!
(view all replies)Comment Reply
Flipped out can be good or bad... so yeah.
(view all replies)Comment Reply
Thanks! I added "how it works" notes.
(view all replies)Comment Reply
how did u script it i dont understannd but this is awesome
(view all replies)Comment Reply
chomesmuhao: This made your daughter flip out/go crazy? I'm confused. I think this is about as mild as they come. Sorry, but all my applications come with no warranty or liability. Use at your own risk!
(view all replies)Comment Reply