edited October 2014 in ORK Support
Hi all!
I'm testing out the ORK Framework, so I'm a new to the system yet, so please forgive me for my nooby questions :D
Well I have this problem that I'm not sure how can I get over it.
My character won't move with the normal button controls set up in the framework, I tried to copy everything exactly as in the tutorial character, but still my character won't move.
I noticed that when I'm playing the scene, the console was outputting constantly this error message:

"NullReferenceException: Object reference not set to an instance of an object
ORKFramework.Behaviours.ButtonPlayerController.UpdateSmoothedMovementDirection ()
ORKFramework.Behaviours.ButtonPlayerController.Update ()"

So I was wondering that could that point to the problem I'm having.
I just don't know what I need to change in the set ups so that I can get over the problem.
So can someone help me out with this problem?
Post edited by gamingislove on
  • Do you have a CharacterController component on your combatant's prefab?
    The built-in controls require it for movement :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Yes it has, I checked that it does have all the components the "Brown Pants" prefab has.
    Now I tested that if I bring the prefab character I want to use to the ORKdemo project, and replace it with the "Brown Pants" in the combatant menu, it seems to work ok.
    So could the problem have something to do with the project itself?
  • Ok, other possible issues:
    - is a camera in the scene
    - is the camera tagged as MainCamera
    - do you spawn the combatant through ORK (i.e. he isn't already in your scene)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited October 2014
    if those all check out i suggest just making a clean project and see if it was just a compile error when you imported ork and if that dont work. You can toss your pc out the window!
    Post edited by wtyson on
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Didn't have the camera tagged as Main Camera :)
    now it seems to work, thanks all :D
    I'll ask again if anything else will pop out, but this question is solved.
Sign In or Register to comment.