Jump to content
SponkPuppett

'Run' Not working? Or Noob being dumb?

Recommended Posts

So I'm just getting started kinda figuring out the basics of Leadwerks, and I seem to be having trouble getting my 'run' window to work properly. I've placed a simple platform down, a directional light, and a player character prefab on it when I hit 'run' the window pops up, but I am unable to look around or seemingly move. However, when I jump I can see the lighting moving as if I'm jumping and when I attempt to walk around I can hear footstep sound effects which suddenly end when I assume the character falls of the platform, but during all this my view is basically frozen in place.

 

The script editor tells me its unable to load the texture for "Camera 2" which i'm assuming is a default element since I haven't added anything myself yet. Question is, am I doing something wrong or there something up with leadwerks on my computer?

Share this post


Link to post

I think I'm having the same problem. I haven't tried using the character prefab, but it sounds like it is related. I'm guessing that "Camera 2" is the first object in your scene? For me it says it failed to load the texture for whatever object is first in the scene.

 

I think something is wrong with the blank template (I'm assuming that's what you used). I'd suggest to try using the FPS template for now and make a new scene using that.

Share this post


Link to post

I don't know how the player prefab looks like these days, but is it possible that you need to link the camera to the player script. Can you post a screen shot of your scene hierarchy and a screenshot of your player prefab settings?

Is there a camera in your scene?

Share this post


Link to post
I don't know how the player prefab looks like these days, but is it possible that you need to link the camera to the player script. Can you post a screen shot of your scene hierarchy and a screenshot of your player prefab settings?

 

Thank You,

 

So after reading this I did indeed realize I had to connect the Camera to the fpsplayer prefab in my scene heirarchy, so now I can look around in the scene and the camera moves when walking, but I cannot look up or down. I assume that is something having to do with the camera's physics. So what do I need to change to get that to work?

 

Also, as Brutile said it does seem like I get an Error when trying to load the first object cause now it cant load Box 1. Though I am using the FPS template.

 

Sounds like you have 2 cameras.

 

The Player prefab has its own camera so if you have another in the scene it will cause problems.

 

Ahhh, you are exactly right. Deleted the default camera and it works. No errors or anything.

 

Thank You!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...