Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 My crippy mosue thingy.
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
War_Caymore




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
upthescale




PostPosted: 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!
War_Caymore




PostPosted: 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 Very Happy thanx for the input
Clayton




PostPosted: 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
jamonathin




PostPosted: 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 Smile.
[/code]
War_Caymore




PostPosted: 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 -
War_Caymore




PostPosted: 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
ZeroPaladn




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: