#### Archived

This topic is now archived and is closed to further replies.

# Help with name program

## Recommended Posts

The_Tempest    122
i have a problem with this little program that i created where it shows some letters and a little lighting affect with it. Iv got the lighting affect down. The problem is that i want it to loop the affect so that it shows the effect 3 times with a delay of about .13 seconds inbetween flashes. I used this to loop it:
x=1
if x<3 then x=x+1
if x=3 then goto welcome
if x<3 then goto repeat

Everything is fine exept that it loops forever, and it doesnt end at 3 flashes. BTW i am using q-basic.

##### Share on other sites
Guest Anonymous Poster
Where does repeat go? If it goes to the part right before x = 1 then as you step through the code:

x = 1, x is less than 3 so x=x+1 now x = 2, x is not equal to 3 so dont go to welcome, x is less than 3 so go to repeat, x = 1...

Infinite loop! That is assuming repeat is before x = 1.

##### Share on other sites
The_Tempest    122
also, can you tell me or give me a tutorial that shows how to move objects around the screen? You know like how to move "g"(on the right side of the screen) to the left side or the middle, etc? Do you put coordinates in or something?

##### Share on other sites
The_Tempest    122
argg i wish i could explain this better. Here''s the code, i hope it helps, paste it into a compiler, ull see what i mean.

clscolor 8? "                    ______              "? "    /\     |       |        |_     _|   "color 7? "   /  \    |       |          |_ _|     "color 6? "  /____\   |       |---        _|_      "color 5? " /      \  |       |         _|   |_    "color 4? "/        \ |______ |______  |       |   "color 3? "_____________________________________delay .13clscolor 15? "                    ______              "? "    /\     |       |        |_     _|   "color 7? "   /  \    |       |          |_ _|     "color 6? "  /____\   |       |---        _|_      "color 5? " /      \  |       |         _|   |_    "color 4? "/        \ |______ |______  |       |   "color 3? "_____________________________________delay .13clscolor 8? "                    ______              "? "    /\     |       |        |_     _|   "color 15? "   /  \    |       |          |_ _|     "color 6? "  /____\   |       |---        _|_      "color 5? " /      \  |       |         _|   |_    "color 4? "/        \ |______ |______  |       |   "color 3? "_____________________________________delay .13clscolor 8? "                    ______              "? "    /\     |       |        |_     _|   "color 7? "   /  \    |       |          |_ _|     "color 15? "  /____\   |       |---        _|_      "color 5? " /      \  |       |         _|   |_    "color 4? "/        \ |______ |______  |       |   "color 3? "_____________________________________delay .13clscolor 8? "                    ______              "? "    /\     |       |        |_     _|   "color 7? "   /  \    |       |          |_ _|     "color 6? "  /____\   |       |---        _|_      "color 15? " /      \  |       |         _|   |_    "color 4? "/        \ |______ |______  |       |   "color 3? "_____________________________________delay .13clscolor 8? "                    ______              "? "    /\     |       |        |_     _|   "color 7? "   /  \    |       |          |_ _|     "color 6? "  /____\   |       |---        _|_      "color 5? " /      \  |       |         _|   |_    "color 15? "/        \ |______ |______  |       |   "color 3? "_____________________________________delay .13clscolor 8? "                    ______              "? "    /\     |       |        |_     _|   "color 7? "   /  \    |       |          |_ _|     "color 6? "  /____\   |       |---        _|_      "color 5? " /      \  |       |         _|   |_    "color 4? "/        \ |______ |______  |       |   "color 15? "_____________________________________   "color 15clscolor 8 ? "                    ______              " ? "    /\     |       |        |_     _|   " color 7 ? "   /  \    |       |          |_ _|     " color 6 ? "  /____\   |       |---        _|_      " color 5 ? " /      \  |       |         _|   |_    " color 4 ? "/        \ |______ |______  |       |   " color 3 ? "_____________________________________ delay .13color 15print ""print ""print ""print "------------------------------------Welcome-------------------------------------"

##### Share on other sites
The_Tempest    122
.. and yes, my name is Alex