
-----------------------------------
War_Caymore
Tue May 09, 2006 11:12 am

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.

-----------------------------------
upthescale
Tue May 09, 2006 12:32 pm


-----------------------------------
go to the top, type in setscreen("offscreenonly")


now u see yur cls? put View.Update after is the cls and watch what happens!

-----------------------------------
War_Caymore
Tue May 09, 2006 3:32 pm

o rele?
-----------------------------------
kewl, thanx. i'll give it a try.

ok tried it, and that is the worst paint program :D thanx for the input

-----------------------------------
Clayton
Tue May 09, 2006 5:26 pm


-----------------------------------
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

-----------------------------------
jamonathin
Wed May 10, 2006 6:59 am


-----------------------------------
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:


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)


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]

-----------------------------------
War_Caymore
Wed May 10, 2006 10:29 am

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 -

-----------------------------------
War_Caymore
Wed May 10, 2006 10:31 am


-----------------------------------
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 :D

-----------------------------------
ZeroPaladn
Wed May 10, 2006 12:18 pm


-----------------------------------
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.
