wiki
wiki copied to clipboard
jMonkeyEngine 3 Tutorial (7) - Hello Animation is broken
Describe the bug
jMonkeyEngine 3 Tutorial (7) - Hello Animation sample code don't work any more.
java.lang.NullPointerException at jme3test.helloworld.HelloAnimation.simpleInitApp(HelloAnimation.java:39)
It is cause by player.getControl(AnimControl.class); returning null.
To Reproduce Steps to reproduce the behavior:
- Create a new projet "BasicGame"
- Copy sample code
- Move file to the new package
- Rename the file
- Launch
Expected behavior Fix it. Best will be to use the new way to animate object. At least we can add a Warning on web page "This tutorial is depreciated & don't work anymore"
Desktop (please complete the following information):
- OS: Windows 10
- Version v3.4.1-stable for JMonkeyEngine 3.4 for tutorial
Additional context Other tutos was working, so I assume this isn't cause by my computer.