I’m trying to reuse code I wrote in flash (actionscript 2) for a cartoon bug animation that came out nicely. To get the same moves and that same 2D animation feel that I liked, I was thinking I cpuld do it in EIAS 8 and XP, just not cartoon like this time.
In flash (this was years ago) I wrote a simple function to animate the various parts of one bug. the function controlled the movements, placement and colors of the bug. Just a few expressions, or lines of code. I then reused this function, and passed it parameters to basically animate the rest of the bugs, there were a lot of them, and the result was nice and random, all the bugs behaving differently.
I have tried writing “function(){ whatever” syntax in XP but I get errors. I have also tried using “for” loops but I also get errors when I combine it with custom variables. The for loops was in an old version of XP though, EIAS 5.5 XP I think, and this was for another project, similar though, and I ended up using an instance of XP for each “bug” and it was just a nightmare to keep track of.
And again, I feel like I’m missing something obvious somewhere, but, I hope it’s clearer now. Thanks.