Quickly looking at GitHub - JPF12141999/Toy-Story-2-Ripoff-Game: Ripoff of Toy Story 2: Buzz Lightyear to the Rescue, which takes place in the SpongeBob Universe instead. :
-
You placed all files, code and data, at the top-level folder of the application. This makes it hard to see what’s going on. Please move data files to
data/
, code tocode/
, as all CGE examples do and as new CGE projects (created using “New Project” from CGE editor) have. -
Your code defines
TThirdPersonNav
derived fromTCastleThirdPersonNavigation
, and thenMyThirdPersonNav
derived fromTThirdPersonNav
. This is not necessary. You need only one descendant fromTCastleThirdPersonNavigation
. -
The
SetAnimation
has to be declared withoverride
, right now it obscures the virtual method instead of overriding it. The compiler warns about it:.../gameviewplay.pas(38,15) Warning: An inherited method is hidden by "SetAnimation(const {Open} Array Of AnsiString);"
-
Your design refers to absolute filename that can only work on your system:
file:///C:/Users/Joshua/Downloads/SandyTreedome-zipline.glb
.When you were setting this, CGE editor warned you that it will not work, that you should place things inside
data/
subdirectory, and then URLs would be relative to data likecastle-data:/SandyTreedome-zipline.glb
.Please fix your project to work on other systems – as mentioned above, move data to
data/
subdirectory, and make sure your design refers usingcastle-data:/
URLs. ( Data directory | Manual | Castle Game Engine )
I didn’t yet get to actually see the blank screen, so I can’t comment on your exact question. If you fix AD 1 and AD 4 above, I’ll be able to easily test the project on my side.