My crippy mosue thingy.
Author |
Message |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: Tue May 09, 2006 11:12 am Post subject: My crippy mosue thingy. |
|
|
I think it's pretty neat... sconsidering i jstu began to learn turing. it might be a waste of time to you guys but it's kina an accomplishment for me. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
upthescale
|
Posted: Tue May 09, 2006 12:32 pm Post subject: (No subject) |
|
|
go to the top, type in setscreen("offscreenonly")
now u see yur cls? put View.Update after is the cls and watch what happens! |
|
|
|
|
![](images/spacer.gif) |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: Tue May 09, 2006 3:32 pm Post subject: o rele? |
|
|
kewl, thanx. i'll give it a try.
ok tried it, and that is the worst paint program thanx for the input |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Tue May 09, 2006 5:26 pm Post subject: (No subject) |
|
|
if you are going to post the source to your program, post it in the Turing Source Code plz, not bad, but i would suggest you get into the habit of using the counterpart commands to mousewhere, and drawfilloval which are Mouse.Where, and Draw.FillOval. i say this because, if you go further with programming, it will help you when you get into using modules and such, not bad gj |
|
|
|
|
![](images/spacer.gif) |
jamonathin
![](http://compsci.ca/v3/uploads/user_avatars/57683465145f851a43dd9a.gif)
|
Posted: Wed May 10, 2006 6:59 am Post subject: (No subject) |
|
|
Since you're eager to learn Turing it seems, i'll give you some help on re-arranging your code.
Any setscreen options that aren't being changed (i.e. setscreen ("graphics")) can be used once at the top of your program.
So here's whats in your loop:
code: |
locate (1, 1)
drawfilloval (x, y, 10, 10, 7)
delay (10)
cls
put "x: ", x, "y: ", y, button |
This is a personal preference but I always put my cls at the top of the loop (or before I draw everything) then draweverything together. like such: (You dont need to locate (1,1) after you cls)
code: |
cls
drawfilloval (x, y, 10, 10, 7)
put "x: ", x, "y: ", y, button
delay (10)
|
Now for the View.Update. It does not go right after the cls, but right before the delay. So your setscreen will be changed to just offscreenonly, you dont need the graphics right now.
Good luck with your learning .
[/code] |
|
|
|
|
![](images/spacer.gif) |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: Wed May 10, 2006 10:29 am Post subject: THANX |
|
|
Wow, thanx for all the help youre willing to spend your time for. I greatly appreciate your help and i will update the program as soon as i get time then i will re-post it. The reason i'm learng the mouse things is because my friend wants me to program a part of a game, he's making a flippin p2p file server in turing and he wants me to program the mouse co-ordinates and stuff. thank you for your input.
- feel free to pm me - |
|
|
|
|
![](images/spacer.gif) |
War_Caymore
![](http://compsci.ca/v3/uploads/user_avatars/1297396288461268b7c1f70.jpg)
|
Posted: Wed May 10, 2006 10:31 am Post subject: (No subject) |
|
|
SuperFreak82 wrote: if you are going to post the source to your program, post it in the Turing Source Code plz
don't mind me spamming you here but.... am i already posting in the "Turing Source Code" ares of the site. it says at the top of the page.... just to let you know ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
ZeroPaladn
|
Posted: Wed May 10, 2006 12:18 pm Post subject: (No subject) |
|
|
Nice start, brother. Glad to see your getting into Turing! I just want to know one thing, why you have that delay in there? It is kind of pointless, as the movement of the mouse is independant of the program, and adding a delay would only work if you had the circle moving using the arrow keys, to keep the circle from darting around the screen like a sprint runner on speed. Good effort though.
+5 Bits for the brother from the same mother, because I'm nice like that. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|