I just wanted to create a quick example of the LightActor class to show what it could do. I wasn't thinking when I made it that that people might want to see just a normal LightActor without flickering, or a more realistic torch, with better flickering.
Yes, the images flicker because that's how I set the torch to work, I wanted it to be more realistic. I'm going to update it in a few minutes where you can have a solid image, and can change the intensity and other features.
Click "Open in Greenfoot" download and open the program in Greenfoot, then you can look at the code from inside greenfoot. If you can't figure out how to go from documentation to code, go to the top right corner of the window, and click on the dropdown button that says "Documentation", then click on "Source Code". Or you could press CTR+J
@MrMason99 You run by pressing shift.
Also, I was planning on making a mouseClicked() method for the paper, but I never got to it. I started focusing on the challenge scenario for this month, but now I have a huge final project for AP Computer Science (yes, it's a game) that I'm currently working on now. I may get back to this game later, but I have classes to worry about first.
I know why you are getting an error when the mouse leaves. Greenfoot can't find the mouse because it's not on the screen. So your MouseInfo() == null! You need to rewrite wherever you use MouseInfo to make sure it's != null.
2013/5/27
Dynamic Lighting
2013/5/27
Dynamic Lighting
2013/5/27
Infinite Scrolling World
2013/5/20
Slender 2D
2013/5/18
Squares
2013/5/15
Runner [WIP]
2013/5/12
Pieman
2013/5/12
Color Changing Ground
2013/5/10
Scrolling SuperWorld