Posted 18 June 2013 - 01:04 PM
Hello friends,
i really would like to get back to the core of this question, because it's (roughly-alike) the problem in my case, it just has another reason. I'm permanently actualising the screen output and the screen "flickers" due to term.clear() or term.clearLine(). I brought the data of the OCS-Proximity-Sensor to the screen, based on the Targets x- and z position. The Name of the Targets are shown. The Screen is cleared and the Targets are shown again at (maybe) their new position.
Expressed simplified:
while loop
within a "for - in pairs - do" loop
targets are shown on x, z, based on (target.Position.X), (target.Position.Z)
end
screen is cleared
end
How do I have to manage my "Output", without the need of cleaning the whole screen or the targets line. Maybe I just don't know how to put the targets into an object and then show object - clear object ??!!??
When the for loop ends and runs a new pass, x and z are containing of course new data and its logical, that i can't erase the old position with their new data and when i erase the target in the actual pass (with my limited knowledge), it brings up a flicker.
How do i have to erase the targets-display at the old position or maybe just before the new position becomes actual?
Greez
i really would like to get back to the core of this question, because it's (roughly-alike) the problem in my case, it just has another reason. I'm permanently actualising the screen output and the screen "flickers" due to term.clear() or term.clearLine(). I brought the data of the OCS-Proximity-Sensor to the screen, based on the Targets x- and z position. The Name of the Targets are shown. The Screen is cleared and the Targets are shown again at (maybe) their new position.
Expressed simplified:
while loop
within a "for - in pairs - do" loop
targets are shown on x, z, based on (target.Position.X), (target.Position.Z)
end
screen is cleared
end
How do I have to manage my "Output", without the need of cleaning the whole screen or the targets line. Maybe I just don't know how to put the targets into an object and then show object - clear object ??!!??
When the for loop ends and runs a new pass, x and z are containing of course new data and its logical, that i can't erase the old position with their new data and when i erase the target in the actual pass (with my limited knowledge), it brings up a flicker.
How do i have to erase the targets-display at the old position or maybe just before the new position becomes actual?
Greez