Computer Science Canada Mega Man Animation |
Author: | Mystify [ Wed Nov 30, 2005 5:16 pm ] |
Post subject: | Mega Man Animation |
Hey guys this is my first ever animation what do you think of it... its just a basic Mega Man animation |
Author: | iker [ Wed Nov 30, 2005 6:23 pm ] | ||
Post subject: | |||
Its a pretty darn good looking animation, but your code could have been [bold]GREATLY[/bold] decreased by using a loop. Instead of showing " MEGA MAN ANIMATION!!!" you could of had a procedure and a locate (col,row) in it. try something like
obviously I'm not going to tell you exactly how the code goes, so that you have the chance to figure it out. I hope that this does help you out, if not, just ask again and I'll give you another hint:D anyways, its pretty basic how to do it, good luck! |
Author: | do_pete [ Thu Dec 01, 2005 11:39 am ] |
Post subject: | |
Good job You should put your pictures into an array and make you code less linear |
Author: | AzureFire [ Thu Dec 01, 2005 3:57 pm ] | ||
Post subject: | |||
yea, an array would be much better, because you could number your image variables and put in a for loop and call it with the counter, for example.
That of course won't work as-is so you'll have to finish it, but remember you have to declare ALL of the array components. |
Author: | RedRogueXIII [ Sat Dec 03, 2005 4:14 pm ] |
Post subject: | |
i have the same comments as the ppl above but im guessing you probably want to have the user control megaman. there are plenty of tutorials about moving a charcter so im going to skip the basics. Just a little trick i think would be good for step by step animation when holding down one button. in the loop have a count variable that increases everytime the loop cycles and your still holding down the button, when the count gets to a certain number then the picture changes, when it reaches the end of the animation set then the count is turned back into 0 so it repeats if your still holding down the button. |