In transferring some code from the wonderful tutorials, I’m getting an error I can understand
Here is the Error:
PlazmorphGame.MainGame is not abstract and does not override abstract method onAnimChange(com.jme3.animation.AnimControl,com.jme3.animation.AnimChannel,java.lang.String) in com.jme3.animation.AnimEventListener
public class MainGame extends SimpleApplication
Here is the code:
public class MainPlazmorph extends SimpleApplication
implements AnimEventListener {
private AnimChannel channel;
private AnimControl control;
Node player;
public static void main(String[] args){
And here are the imports:
package PlazmorphGame;
import com.jme3.scene.Geometry;
import com.jme3.scene.Mesh;
import com.jme3.scene.Node;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
import com.jme3.input.KeyInput;
import com.jme3.input.MouseInput;
import com.jme3.input.controls.MouseAxisTrigger;
import com.jme3.input.controls.MouseButtonTrigger;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.AnalogListener;
import com.jme3.input.controls.KeyTrigger;
import com.jme3.input.controls.JoyAxisTrigger;
import com.jme3.input.controls.JoyButtonTrigger;
import com.jme3.animation.AnimChannel;
import com.jme3.animation.AnimControl;
import com.jme3.animation.AnimEventListener;
import com.jme3.animation.LoopMode;
import com.jme3.light.DirectionalLight;
I’ve been ‘building’ a base game, control by control and slowly extending the application so I understand the code. The next step it to load a simple model in place of the box and begin animating it. I have my custom controls done. After this I plan to start building the ‘world’ and a character load screen.
Implement onAnimChange(com.jme3.animation.AnimControl,com.jme3.animation.AnimChannel,java.lang.String) method in your main class.