Yeah I noticed you optimized it through the RSS i recieve, =P. I just thought it was a portion of the code due to its size compared to Mexi's Laughing

(my real mood: Sad )
Heh, I guess my optimizing skills have gotten a lot of practice, then. Smile
I have redone the whole code I tried your way Kerm and it works but it is not quite dark enough, and yes I understand it, but either to your code or mine how would I throw a getKey command without stopping the animation?
You would try something like this:


Code:
DelVar GDelVarADelvarBClrDraw
-1->D:While 1
Pt-On(A-1,B+1
Pt-On(A,B
Pt-On(A-1,B-1
A->C:A+D->A
D+2((A=-5)-(A=0->D
rand(5 //This is your time-waster.  Change the 5 to make it longer or shorter
getKey-->K
//Act on K here
Pt-Off(C-1,B+1
Pt-Off(C,B
Pt-Off(C-1,B-1
End
O.K. thanks.
your prog seems similar to my lightning prog/game (see avatar <-) to make mine darker i just made it so i didn't do anything to the animation if it didn't move this id the code i use if you have sugetions tell me

Code:
getKey->C
If C=26 or C=24 or V<=1
Then
P->M
P+2((C=26 and P<91)-(C=24 and P>3)->P
Pt-On(M,10,2:Line(M,9,M,3:Line(M+1,6,M+3,8:Line(M-1,6,M-3,8:Line(M-1,2,M-3,0:Line(M+1,2,M+3,0
Pt-Off(P,10,2:Line(P,9,P,3,0:Line(P+1,6,P+3,8,0:Line(P-1,6,P-3,8,0:Line(P-1,2,P-3,0,0:Line(P+1,2,P+3,0,0
End
How about.


Code:

getKey
If Ans
Then
do stuff to animation
End
I store getkey to C so i can use it later in my comands but i will use IF ans=? to improve speed
Mm... All my animations use Boolean Logic so I have to use a variable. But for that instance its not required...
Pseudoprogrammer wrote:
Mm... All my animations use Boolean Logic so I have to use a variable. But for that instance its not required...

wtf please explain what Boolean logic is Question
TheStorm wrote:
Pseudoprogrammer wrote:
Mm... All my animations use Boolean Logic so I have to use a variable. But for that instance its not required...

wtf please explain what Boolean logic is Question
May I respectfully suggest that you engage in a Google search? For example,
http://en.wikipedia.org/wiki/Boolean_logic

Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement