Help with your scripting

Make FPS Player

Make FPS Player

Postby CreativeOcclusion » 21 May 2016, 02:09

I am attempting to make a FPS Player...

I have added the actions from the action editor:
First Person Camera
FPS System Player
PhysiX Player Controller
and external script...Scripted_Player.lua from the examples folder in scripts...

Player does move and changes animations correctly...
Player turns right to left on the Y axis correctly...
Player does NOT follow camera up and down on the X axis...

Is there a way to attach player to camera or code to get him to stay with the orientation of the camera?..

Better yet, does anyone have any old code laying around that may have tried this in .lua?

I know that I will figure it out eventually, but I want to save some time...

Thanks for any help...CO
Thanks, CreativeOcclusion
User avatar
CreativeOcclusion
Skyline Warrior
 
Posts: 366
Joined: 22 Jun 2015, 19:34
Location: Texas

Re: Make FPS Player

Postby SolarPortal » 21 May 2016, 14:21

Using those actions is awkward and is why we changed to the new FPS. In order to get correct arm placement that follows the character, the Entity-offset action had to be used which was a major PITA when linking to the First person camera lol :P

Off the top of my head without getting in the muck and figuring it out, i can't give a complete answer.
You could try building an FPS completely in script and start of on a 2D Fixed Camera, perhaps add an SCC and go from there.

If you are going to use the actions that the old FPS uses, then why not use the old FPS and change the properties and add more script.

Player does NOT follow camera up and down on the X axis...

This is a property that needs activated on one of the actions. Again can't remember of the top of my head.
Plus we are having to box some things in the house to get ready to move... hehe :P

If i get some time, i will try to help you and have a go myself... but why not use the new FPS player?
Currently the commands which crash when adding a script to it are anything from the fpsSystem.functions().

Hope this helps for now :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Make FPS Player

Postby CreativeOcclusion » 21 May 2016, 18:55

Thanks for the help...It was the offset action that I was missing...

I am just doing this as a side project...I bought a new arms and weapon model that I wanted to try out in SkyLine...Later I will need more weapons in ToT...Different planets and different tunnels...

Just looking ahead...I want to make a FPS Player for SkyLine that has the entire code in lua...This will insure that I have full access to the code..

It is just a project...CO
Thanks, CreativeOcclusion
User avatar
CreativeOcclusion
Skyline Warrior
 
Posts: 366
Joined: 22 Jun 2015, 19:34
Location: Texas

Re: Make FPS Player

Postby SolarPortal » 21 May 2016, 19:24

cool why not :)

When i get some time, i will try to help out :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 6 guests

cron