Computer Science Canada GUI help required...this isnt covered in the tutorial... |
Author: | void [ Sun Apr 06, 2003 1:34 pm ] | ||
Post subject: | GUI help required...this isnt covered in the tutorial... | ||
I know there is already a GraphicUserInterface tutorial...but i cant how to locate menu ![]() ![]() im planning on having the game like this: -a thick frame of black with sparkling "stars" ![]() -a 400*680 "playing screen" -the menu is used to save/load/quit and start a new game - the title is displayed above the menu in the frame - the score is displayed somewhere beside the playing feild(in the frame) along with the Level and the players name current sound track.....i have most of that working...but stupid me ![]() ![]() ![]() ![]()
thats it...i added the extra crap...u can delete that when you copy it into your editor why cant turing be as easy as HTML........i mean turing seriously is too tempermental....caps has to be right...spacing has to be right..... ![]() also...can some explain how to do the color recognition so that if someone clicks on a blue square...it wont disappear unless there are three touching blue squares |
Author: | Tony [ Sun Apr 06, 2003 2:12 pm ] |
Post subject: | |
if you mean putting menu somewhere other then on top, then you have to write your own custom GUI. Menu is *suppost* to be on top so Tom never though of giving an option to move it. Maybe you can modify GUI module for allow you to do that? as for color recognition stuff... you have to search through your array with a spread algorythm. Once clicked on a square, the procedure checks the 4 squares around it for the same color. In your case, if its the same (2 same colors touching each other), that block gets marked as being in this group and procedure repeats, originating from that square. After the procedure returns to original square, you just count how many blocks were marked and you get the number of samecolor blocks touching each other in a group. |
Author: | void [ Sun Apr 06, 2003 3:23 pm ] | ||
Post subject: | i bow humbly before you | ||
thank you sooooooooo much...you dont realize how much easier you have just made my life!!!!! ![]() ![]() ![]()
(i wrote all of that for him...he kinda just sat there and nodded his head ![]() ![]() |
Author: | Tony [ Sun Apr 06, 2003 5:08 pm ] |
Post subject: | |
what? there's another forum? ![]() anyway, I dont understand what you mean by drawing lines, you'd have to elaborate on that. as for chain reactions, you can use circle colision detection (we got that in tutorials). I'm not sure what you mean by redeclearing variables ether. If its just a simple variable, you can declear it outside the loop and just change value. If you mean array, you'd have to declear it as flexable array, but someone else would have to give you syntax for that. |
Author: | nate [ Sun Apr 06, 2003 6:20 pm ] |
Post subject: | Crosshair with mouse |
FOR SOME REASON YOUR CODE STIll PRODUCES THE CURSOR? EVEN WITH View.Set ("nocursor") CAN U MAKE IT SO THERE IS NO CURSOR? Also is there a code that restricts where the mouse can move. So you can make it not go off the page? PLEASE RESPOND -NAte |
Author: | void [ Sun Apr 06, 2003 7:00 pm ] |
Post subject: | Cursor No Go |
the view.set ("nocursor") actually only makes the flashing cursor disapper No matter what you do the actual pointer will never disappear off the page...but if your crosshair is like mine and quite some distance from the pointer (cursor...same shizzle) then it will not be a problem....as for the mouse restriction....not as far as i kno...but you'd have to ask one of the hacker gods to be sure....you can always restrict the crosshair for example: var x,y,button:int loop Mouse.Where (x,y,button) if x>(whatever limit you set on the x value) then put "OOPS! Your crosshair is off the page" end if (repeat the same thing for the y co ordinate) also..if you want to make is so that even if the mouse is greater than a certain x/y value the crosshair (or whatever other pointer you use) is still within your limits i suggest creating a second set of x and y variable (x1,y1) and constantly makeing them equal to x and y (x1:=x, y1:=y) and then use the same statement that i used above but instead of the stupid remark make x1:=whatever you want as your max x value and so on.... i hope this helps.... ![]() |
Author: | Tony [ Sun Apr 06, 2003 8:19 pm ] |
Post subject: | |
I once came across an interesting program writen in Visual Basic that controls your mouse... quite interesting. but to do so, you need to access window's APIs, which you cant do in turing ![]() so in other words, mouse pointer always stays and can go anywhere on the screen. But void has a good idea with vertual mouse pointer. |
Author: | void [ Mon Apr 07, 2003 3:45 pm ] |
Post subject: | LINE!!! |
okay..im completely out of ideas...i need someone to PLEASE give me a code that makes a lines randomly appear (more than one simultaneously) from the sky...and gradually head down towards the bottom of the screen.... ![]() |