While working on @Gunther 's Starting-List I'm stuck at Listpoint 13:
The error occurs when initializing x2tilemap (the Tilemap example was used as a basis).
A test project is included, so advanced experts may have a better idea of how to apply a help term.
The error occurs when initializing x2tilemap (the Tilemap example was used as a basis).
x2tilemap._prepareobjectsdef (java line: 1305)
java.lang.ClassCastException: b4j.gametest.sn.x2tilemap$_x2internaltilelayer cannot be cast to b4j.gametest.sn.x2tilemap$_x2objectslayer
at b4j.gametest.sn.x2tilemap._prepareobjectsdef(x2tilemap.java:1305)
at b4j.gametest.sn.game._initialize(game.java:171)
at b4j.gametest.sn.main$ResumableSub_AppStart.resume(main.java:80)
at b4j.gametest.sn.main._appstart(main.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at b4j.gametest.sn.main.start(main.java:37)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
The goal is to create a turn-based game using a tile map.
Since this is the first attempt in game development, the mistake will probably be due to a lack of knowledge in the handling of the X2 Game Engine.
Despite the many examples and instructional videos, it has not yet been possible to adequately capture the interaction of the modules involved.
The error occurs in the "X2.b4xlib" as well as in the classes used here. The classes are used to better understand the processes under the bonnet.
Since this is the first attempt in game development, the mistake will probably be due to a lack of knowledge in the handling of the X2 Game Engine.
Despite the many examples and instructional videos, it has not yet been possible to adequately capture the interaction of the modules involved.
The error occurs in the "X2.b4xlib" as well as in the classes used here. The classes are used to better understand the processes under the bonnet.
A test project is included, so advanced experts may have a better idea of how to apply a help term.