Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > CopperCube > Announcements and Showcase
Enhanced FPS Camera - Work in progress
Author Text

xanimalkingx
Registered User
Quote
2018-12-01 03:09:00

I'm just posting here to let everyone know I'm not dead.
I am actually turning my double jump script into a full fledged FPS camera. Just note it will take a while to do and I bet you it will be an amazing extension.
At the moment, I plan:
- Sprinting - 100% done
- Crouching - 100% done
- Arrow keys, WASD, or both to move - 100% done
- Zooming in and out - 100% done
- Smooth movement option - Will work on sometime in the future
- Double jump
- Variable that allows infinite jumps, useful for debugging
- Improved collision detection
- Custom hotkeys (change movement keys, for example)
- Dedicated auto and semi-auto left/right click actions
- And more...

A lot of this has already been implemented but its still a work in progress. I just wanted to announce this here.
Anyways, hope your excited

UPDATE:
I have posted video progress to show basic movement, sprinting, and crouching is finished and working well.
http://i.imgur.com/YkyJXNq.mp4

UPDATE 2:
Final update for a while since physics system will take a lonnngggg time to do.
https://streamable.com/4r2pu

UPDATE 3:
Due to the complex nature of this behavior, you will have to use "Execute JavaScript" action to create a instance of this extension. Its just not possible to have multiple instances of this extension as a behavior, so I have to stick with class-based systems now. I am reworking the code this way. Sorry.

UPDATE 4:
Another video update, this one showing how the multiple camera instance system works by JavaScript. Also, I am still working on the camera physics, its a very complicated thing that might take many more months. Its simply something I cannot just "instantly" do.
https://youtu.be/0xuP1xjOESA


niko
Moderator
Quote
2018-12-01 08:21:15

Nice!


tim12345
Guest
Quote
2018-12-01 09:21:47

does it require the physics engine?


xanimalkingx
Registered User
Quote
2018-12-01 10:26:52

@tim12345
Yes, as my original double jump script required it. ccbSetPhysicsVelocity requires physics simulation, there is nothing I can do about that. However, the normal movement parts of the script don't need it... so the script will act as a normal player controller without jump if you have physics simulation off.


just_in_case
Registered User
Quote
2018-12-02 07:12:58

Will be waiting for this....😇


lucasak47
Registered User
Quote
2018-12-03 16:08:49

waiting


xanimalkingx
Registered User
Quote
2018-12-11 08:41:13

Update:
I have gotten basic movement finished 100%
I am working on other aspects of it now, such as gravity.
Just want to update this post.


xanimalkingx
Registered User
Quote
2018-12-11 09:24:07

Lol, just one more update...
I am working on a movement smoothing option and... my first try, the first time you move when its on, it flings you across the world like a slingshot!


srfstudio
Registered User
Quote
2018-12-11 20:05:02

The features sound great, can't wait to try it out, cheers!

I'm very glad that you're taking physics simulation as an option to be turned off, that way the camera will be usable also in WebGL. WebGL seems to be treated like an ugly sister of CC & I'm not sure why, it's very good & it's much more flexible build for a game :)


xanimalkingx
Registered User
Quote
2018-12-11 22:41:43

I'm actually thinking of working in my own gravity and velocity system with a built in function that mimics ccbSetPhysicsVelocity but only for my extension. This is so it can work in other platforms. However, I don't think I can make my extension combatable for Android... there are just too many different things that have to be done other ways to work in Android that its not worth it...


cerrone
Registered User
Quote
2018-12-13 09:10:01

I am working on a movement smoothing option and... my first try, the first time you move when its on, it flings you across the world like a slingshot!


What are you using for movement smoothing, i can perhaps help.


xanimalkingx
Registered User
Quote
2018-12-13 12:29:02

No thanks, I fixed the issue. I was just a funny bug that I had to mention


cerrone
Registered User
Quote
2018-12-13 19:09:37

Is your new camera system soon available ?


xanimalkingx
Registered User
Quote
2018-12-13 22:54:57

wrote:
Is your new camera system soon available ?

No, it is far from done.


karmacomposer
Registered User
Quote
2018-12-15 23:58:26

Looking forward to it - sounds like a great extension/addition. Free or paid?

Mike


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons