Justopolis Posted April 17, 2014 Share Posted April 17, 2014 Hi all. I'm new to Leadwerks, though not new to level editors or programming (though I haven't used LUA, I'm mostly familiar with Visual Basic). The trouble I'm having is creating a 3rd person fixed, stationary camera, ala Resident Evil 1-3. You control the player with WASD and as they move around a room/rooms the camera automatically switches to another camera at a different, better angle. Or perhaps the camera will angle slightly to follow player till they move into range of another camera. I've seen tutorial for following 3rd person cameras, but that's not what I'm interested in. The camera here should be anchored in place. And the swapping to alternate cameras is obviously a very important feature. I'm just starting out with Leadwerks and haven't created much in the way of content, nor any code, so I don't have anything to share. However, I've tried two different tutorials: http://www.leadwerks.com/werkspace/files/file/521-resident-evil-cameras/ and http://www.leadwerks.com/werkspace/blog/110/entry-1057-setting-up-a-map-with-3rd-person-controls-and-camera/ And in both cases I am unable to get the character to move, much less work out any sort of camera switching capability. Sorry for being so green but you gotta start somewhere. Oh, and I'm using the Steam Indie version, btw Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 17, 2014 Share Posted April 17, 2014 It seems your problem is character moving not camera. Download "darkness" demo and use barbarian model and script to start to make your game and study it's code and what is the physics setup. http://www.leadwerks.com/werkspace/files/file/475-darkness-awaits-project-31/ Quote Stop toying and make games Link to comment Share on other sites More sharing options...
AggrorJorn Posted April 17, 2014 Share Posted April 17, 2014 Some thing to check: Is the physics type set to charactercontroller (http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/scene-browser-r675) CollisionType to character what script is atached to the character Quote Link to comment Share on other sites More sharing options...
Justopolis Posted April 20, 2014 Author Share Posted April 20, 2014 I use the mesh_figur for the player character, and the character controller is set for the physics mode. Collision type is set to Character and the mass is set to 1, or sometimes 100, I've moved that around. For the scripts, I've followed the various tutorials, attaching the ones mentioned in the above tutorials. LIke this one: http://www.leadwerks.com/werkspace/files/file/407-3rd-person-controls/ or the one included in here: http://www.leadwerks.com/werkspace/files/file/521-resident-evil-cameras/ Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 21, 2014 Share Posted April 21, 2014 If you attach LE3 FPS script : PlayerFPS.lua does it work ? it should , if not something is wrong with your character. If you need help, post your code. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.