Game Design Music and Art

turing help – gaurdianAQ

gaurdianAQ

Member

Posts: 106
From:
Registered: 01-15-2007
can someone answer this question how do I smoothly animate text in turing so when I hold down the up and down key I made it so that you can make it move with a a trail being left behind and when I use a cls command if I hold it you cannot see the ship I am using "<!*!>" as my ship this is what I have right now
const ship := "<!*!>"
var rows : int
var columns : int
var chars : array char of boolean
rows := 1
columns := 1
loop
locate (rows, columns)
put ship
Input.KeyDown (chars)
if chars (KEY_UP_ARROW) then
cls
rows := rows - 1
delay (80)
end if
if chars (KEY_DOWN_ARROW) then
cls
rows := rows + 1
delay (80)
end if
if rows < 1 then
rows := 1
end if
if rows = 26 then
rows := 25
end if
rows := rows + 0
end loop
also when it gets past the 25 row it just starts making an endless trail of ships why is this?
Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Please clarify the language. I know its not C++ or BB.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
I reserve the full right to change my views/theories at any time.

gaurdianAQ

Member

Posts: 106
From:
Registered: 01-15-2007
I already said it's turing
Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Ah, thought that was a technique.

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto
I reserve the full right to change my views/theories at any time.