Posted: Sat Oct 29, 2005 4:55 pm Post subject: Help with cursor animation
I am making a simple reflex testing program and i would like to make my cursor disappear and in its place a cross hair appear. I know how to make the cursor dissapear but i dont know how to put a cursor in its place. I don't know if this affects anything but i am using an earlier version of Turing (3.1.1a) If you have any ideas at all they would be greatly appreciated. Thanks.
Sponsor Sponsor
[Gandalf]
Posted: Sat Oct 29, 2005 5:13 pm Post subject: (No subject)
You know how to make the 'arrow' cursor disappear? From Turing? I didn't know that was possible, how did you do it?
To put something in it's place, why not draw something at mouse.x, mouse.y?
This reminds me of a target practice program I made, I may post it if I can find it
Cervantes
Posted: Sat Oct 29, 2005 6:14 pm Post subject: (No subject)
Check out Mouse.Where. There's the help file, or there's the compsci.ca tutorial, found via the Turing Walkthrough, found in the Turing tutorials section.
Don't forget to put a delay in your loop, or things will appear very slow. Sort of contradictory, eh?
MrHat
Posted: Sun Oct 30, 2005 10:58 am Post subject: (No subject)
lmao just yesterday i looked at the mousewhere code and never thought of it that way. BTW i believe the code for getting rid of a cursor, at least in 3.1.1a is
setscreen("nocursor")
or at least something similar to that
Cervantes
Posted: Sun Oct 30, 2005 11:13 am Post subject: (No subject)
In the newer versions of Turing, setscreen ("nocursor") gets rid of the blinking cursor present in things like get. Mind you, in previous versions you could do things like fullscreen (or so I hear), that you can't do in the newer versions.
MysticVegeta
Posted: Sun Oct 30, 2005 12:24 pm Post subject: (No subject)
seriously? we could do fullscreen in old versions? i wonder why they removed it then..
blaster009
Posted: Sun Oct 30, 2005 3:09 pm Post subject: (No subject)
Probably because older versions were DOS-based.
beard0
Posted: Sun Oct 30, 2005 4:04 pm Post subject: (No subject)
blaster009 wrote:
Probably because older versions were DOS-based.
Exactly. Full screen was all you could do.
Sponsor Sponsor
[Gandalf]
Posted: Sun Oct 30, 2005 5:51 pm Post subject: (No subject)
beard0 wrote:
blaster009 wrote:
Probably because older versions were DOS-based.
Exactly. Full screen was all you could do.
Nope. (Well, as long as no graphics were involved).
beard0
Posted: Sun Oct 30, 2005 8:25 pm Post subject: (No subject)
Errr.... So yeah, you can run it in a DOS window under windows, but that's really just a DOS emulation. To note: If you change the background coulour of your Command Prompt window, running your program causes a large section (maxcol X maxrow) to go black. It is a fullscreen program, being run in an emulation window.
RedRogueXIII
Posted: Sat Nov 05, 2005 1:54 pm Post subject: (No subject)