Problems Involving Setscreen, Backgrounds and Mouse.Where
Author |
Message |
youngjeezy
|
Posted: Sat May 19, 2007 2:54 pm Post subject: Problems Involving Setscreen, Backgrounds and Mouse.Where |
|
|
Hi there everyone,
I recently started turing and have had a lot of help from this forum which is great.
To get to the problem though..
I made a background for my hmk assignment through paint with a picture from the internet and I added numbers and words on it such as..
1. Animation
2. Quiz
etc.etc... a menu basically.
And im trying to click the text to move to another screen but so far no luck. A friend told me to use mouse.where which I have but only some of them are moving to the next screen (two of the five to be precise). How can this be fixed?
Another question is...
How do I...from the screen after clicking...return to the main menu?
Does it need to be in my loop?
Any type help would be appriciated.
ps. Sorry if i didn't post where i was suppose to...I don't where as yet..
Thanks guys
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Saad

|
Posted: Sat May 19, 2007 6:45 pm Post subject: Re: Problems Involving Setscreen, Backgrounds and Mouse.Where |
|
|
Well there is a one way i can think of right now which is
having
loop %--- Main Menu Loop
Mouse.Where(x,y,b)
if x = w.e location and y = w.e location then
loop %----- Other menu on click loop
exit when b > 0 and --- x is over the return button and so is y
end loop
end if
end loop |
|
|
|
|
 |
youngjeezy
|
Posted: Sat May 19, 2007 10:52 pm Post subject: Re: Problems Involving Setscreen, Backgrounds and Mouse.Where |
|
|
never hurts to try
thanks...very much apprieciated  |
|
|
|
|
 |
Cervantes

|
Posted: Sun May 20, 2007 9:45 am Post subject: RE:Problems Involving Setscreen, Backgrounds and Mouse.Where |
|
|
Welcome to CompSci.ca, youngjeezy!
Another thing to look into is Mouse.ButtonWait. It's a bit less flexible than Mouse.Where, but that's because it is tailored to a specific situation. I think it would be great for what you want to do.
youngjeezy wrote: Another question is...
How do I...from the screen after clicking...return to the main menu?
Does it need to be in my loop?
First, you have to design how you want the interface to work. You could code it so that on the right click you return to the main menu, left click takes you to the next screen. Or you could put buttons in the bottom corner of the screen that say "main menu" and "next screen". You must first decide on this. |
|
|
|
|
 |
youngjeezy
|
Posted: Sun May 20, 2007 4:21 pm Post subject: RE:Problems Involving Setscreen, Backgrounds and Mouse.Where |
|
|
lol I hope you guys have a tutorial on Mouse.ButtonWait cause I have NEVER heard of that before haha But i'll look that up ..sounds very intriguing for what i'm doing. Thanks And that's exactly the type of menu I was envisoning. I wanted my interface to have a main menu button in the bottom middle and a previous box to the far bottom left and a next box to the far bottom right.
Thanks for all the help guys  |
|
|
|
|
 |
Cervantes

|
Posted: Sun May 20, 2007 7:35 pm Post subject: RE:Problems Involving Setscreen, Backgrounds and Mouse.Where |
|
|
The Turing Help (F10) is pretty good at explaining Mouse.ButtonWait. Check the Turing Walkthrough, also. I'm not sure if it's covered, but it might be.
As for getting buttons to work, you could use Turing's included GUI code, or you could try making your own, or you could try looking around the [Turing Source Code] forum for buttons made by people here. There are a few, to be sure, including one made by myself. So in this regard, you've got lots of options. |
|
|
|
|
 |
|
|