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

2020/5/13

Left & Right facing images

1
2
danpost danpost

2020/5/14

#
I think if you renamed your setImg method more appropriately (like to, say, loadImages), you might see one problem. Let me point out that this particular method is invoked exactly one time, from the constructor of the class. The attack images will certainly not load if you apply conditions above and beyond what is required (what does "with enemy" have to do with what images are loaded --the boolean is always false during constructing anyway). You just need to load all images for Blue or all images for Red; then set the initial image for the actor.
You need to login to post a reply.
1
2