Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Simple Motion [10/10]

This demonstrational program draws a moving text on the screen. Named arguments in println statements are explained in the next chapter.

Exercise:

The animated text leaves a trail. Can you remove the trail?


Solution

for #i=300..0 -=5
	{
	clearScr(); << insert this line only
	... (the rest of code)
	

Another possibility is to use fillScr(/black) statement.

Loading...