need help making an animation
Author |
Message |
ecookman

|
Posted: Thu Nov 06, 2008 11:49 am Post subject: need help making an animation |
|
|
yes... on to my problem
i am trying to make a small animation
it has a TTYl tank move onto the screen, stops shoots a OMG bomb >}OMG)
and then i try to make the screen fade black from the center using a growing box.
I can't seem to get the logic right help me plz...
AND YES I JUST FOUND THE C O L O R S!!!
ANYWAY
here is the code
Turing: |
for a : 1 .. 20
locate (1, +a )
put " ______"
locate (2, +a )
put " / TTYL \\######### "
locate (3, +a )
put " ___/________\\___"
locate (4, +a )
put "/ ____________ \\"
locate (5, +a )
put "[-| |O| |O| |-]"
locate (6, +a )
put " ---------------- "
delay (100)
end for
for b : 1 .. 36
locate (2, 38 + b )
put ">}OMG)>"
delay (20)
end for
for c : 0.. 555555
var x : int := (1)
var y : int := (1)
var x2 : int: = (1)
var y2 : int: = (1)
x: = x+ 1
y: = y+ 1
x2: = x2+ 1
y2: = y2+ 1
locate (13, 40)
drawfillbox (x+ 1,y+ 1,x2+ 1,y2+ 1, black)
delay (5)
end for
|
and yes the C O L O R S!!! is the high-light of my day... just tells ya how much fun i am having
lol so help would be nice
woooooooooo!!!!!! (no enthusasim) |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
pavol
|
Posted: Thu Nov 06, 2008 12:52 pm Post subject: Re: need help making an animation |
|
|
well, in your for loop where you try to make your box grow, you put your variable declarations inside meaning that every time your for loop runs it will redeclare x,y,x2,y2 and define them to 1. try putting it outside the loop.
hope this helps |
|
|
|
|
 |
metachief

|
Posted: Thu Nov 06, 2008 4:04 pm Post subject: RE:need help making an animation |
|
|
It would be something like this, I'm guessing?
Turing: |
for a : 1 .. 20
locate (1, +a )
put " ______"
locate (2, +a )
put " / TTYL \\######### "
locate (3, +a )
put " ___/________\\___"
locate (4, +a )
put "/ ____________ \\"
locate (5, +a )
put "[-| |O| |O| |-]"
locate (6, +a )
put " ---------------- "
delay (100)
end for
for b : 1 .. 36
locate (2, 38 + b )
put ">}OMG)>"
delay (20)
end for
for i : 0 .. 500
drawfillbox (maxx div 2 + i, maxy div 2 + i, maxx div 2 - i, maxy div 2 - i, black)
delay (10)
end for
|
|
|
|
|
|
 |
ecookman

|
Posted: Fri Nov 07, 2008 8:36 am Post subject: RE:need help making an animation |
|
|
mmmm yes that works thank you very much and ya that was a dumb mistake
thanks |
|
|
|
|
 |
|
|