This site requires JavaScript, please enable it in your browser!
Greenfoot back
JeppDev
JeppDev wrote ...

2015/6/15

Animation

JeppDev JeppDev

2015/6/15

#
Right now I have made animation with a bunch of if statements, but it is not really optimal, so I just wanted to know the best way there is to make optimal animation, so anyone can just come with ideas on how to
danpost danpost

2015/6/15

#
There are a couple of ways to do it without using 'if' statements. One way is to name each set of images with the same name suffixed by a sequence number. The other is by using arrays for the images. Either one of these would require an int field to track which image is the current one being used.
You need to login to post a reply.