I've been unable to compile the class i'm still a noob in most ways can anyone assisst me. I use an enum method to set keys
enum CubeAction {TURNLEFT, TURNRIGHT, FORWARD, BACKWARD, EXIT};
InputHandler ac = new InputHandler();
public CubeController(Node loadednode, String modelPath) {
bindKey(FORWARD, KEY_I);
InputActionEvent evt = null;
KeyNodeForwardAction forward = new KeyNodeForwardAction(modelNode, 30f);
ac.addAction(forward, value(FORWARD), true);
i realize theirs a method forward.perform(evt) however i've been unable to use it can anyone assisst me
can't anyone assist i've been trrying to figure it out for a while the animations work but not the movement from the keyNodeAction classes heres the full code.
package com.tps1.RandomCharacter;
import java.net.URL;
import java.util.Iterator;
import com.jme.input.InputHandler;
import com.jme.input.KeyBindingManager;
import com.jme.input.KeyInput;
import com.jme.input.action.InputActionEvent;
import com.jme.input.action.KeyNodeBackwardAction;
import com.jme.input.action.KeyNodeForwardAction;
import com.jme.input.action.KeyNodeRotateLeftAction;
import com.jme.input.action.KeyNodeRotateRightAction;
import com.jme.input.controls.GameControl;
import com.jme.input.controls.GameControlManager;
import com.jme.input.controls.binding.KeyboardBinding;
import com.jme.input.controls.binding.MouseButtonBinding;
import com.jme.math.Vector3f;
import com.jme.scene.Controller;
import com.jme.scene.Node;
import com.jme.util.Timer;
import com.model.md5.ModelNode;
import com.model.md5.controller.JointController;
import com.model.md5.importer.MD5Importer;
import com.sun.corba.se.impl.orbutil.concurrent.Sync;
import com.tps1.aMain.Main;
import com.tps1.util.UnifiedModelLoader;
import static com.tps1.RandomCharacter.CubeController.CubeAction.*;
import static com.jme.input.KeyInput.*;
import static com.jme.input.controls.binding.MouseButtonBinding.*;
/**
Now we need some explanations. First, I'm using a bunch of enums for the different actions. This is not required for the GameControl system, it works with Strings. But enums have some nice properties compared to Strings: They are real classes, you can use them in switch statements and you can never spell them wrong, because the compiler will warn you. Using Strings as