I have an issue that has been bugging me a couple of days. First, let me be clear about what I'm trying to do. I am building an RPG style game and have a map class that extends an FX Pane.
I am trying to have animated water. I have about 72 farely large png files created with Adobe After Effects that are the animated water image files. They are about 1200 x 1200 pixels. At first I just tried popping these in an ImageView by calling
myImageView.setImage(my water name); but the program freaks out and crashes. I'm guessing because the files are so large and I'm setting the image every 100 millis (10 frames a second basically). I need a better way to do this obviously.
Any suggestions? I'm not above using a different method (ie. not using ImageView) if necessary. I'm not a beginner programmer by any means so feel free to leave me code if you want. I'm more familiar with ruby though
The first idea that came to my mind: Do you reload these 72 images every 100 millisec? If so, then it would explain why your program freaks out.
SCJP, SCWCD, SCJD
Joined: Jan 04, 2014
I basically only load one image every 10 frames but I actually figured it out. I was double looping my update on accident. I was calling that update from a global class (class made just for updates) and I also called an infinite cycle count in the update that was changing the image view so it was multi updating each time it ran. I've since fixed it though. It had me stumped for a while though. I'm going to stick around this site though and see what all I can do to help/learn.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com