wiki icon indicating copy to clipboard operation
wiki copied to clipboard

jMonkeyEngine 3 Tutorial (7) - Hello Animation is broken

Open HydrolienF opened this issue 3 years ago • 0 comments

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:

  1. Create a new projet "BasicGame"
  2. Copy sample code
  3. Move file to the new package
  4. Rename the file
  5. 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.

HydrolienF avatar Oct 05 '22 07:10 HydrolienF