Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Maybe a clue for the head bobbing

vegetalain
Registered User
Quote
2020-03-22 20:46:00

Hello world, hm, sorry for my english, i'm french ... I don't fin a page where say "hello" so...

I'm a drawer, I'm 45 and i leave in France (yeah i'm very old ), and since 1991 (sonic the hedgehog) i love video games. So, hm, i have discovered Coppercube a few weeks ago and i find it amazing. I'm not a coder but a "drawing", and type code every day is not my speciality... But i find it fascinating.

Coppercube is the solution to my wish, create a videogame with a minimum of problem. I had test build (duke nukem 3D), worldcraft (half-life), unrealengine2 (devastation), eduke32 (duke nukem 3D again) and the con files, and UDK. It's because i was "blocked" in udk that i looking for another solution. And then, i found Coppercube :D

- So, my question, now -

I maybe have a solution for the head bobbing, or in fact, it maybe just a "clue". you can download the CCB file, and next, see the picture.


The ccb file is here : http://vegetalain.free.fr/test_b...

🔎︎



So, I put "in" the camera, two cubes. Every N seconds the camera see the cube 1, and the cube 2, and the cube 1, and the cube 2, etc...
this mouvement can be "launch" by a keypress (down), and stopped by another keypress (up)... It seems to work, but my problem is, that there is "always" the position 0.0, 0.0, 0.0 that the camera caring. Without this "position", i think it works.

In javascript i'm a not very strong, so, maybe someone could be make a javascript (or give me help to do this), where the player look at cube 1, cube 2... cube 1, cube 2... cube 1, cube 2... etc. (the texture of cubes would be an invisible png )
And this javascript would be launch by keypress ("w" to go forward for exemple), and stopped when the "w" key would be realased...

What do you think about this "approch" of head bobbing, is it possible to write a js for that, and copy and paste it in "Excecute a javascript"?

Thanks for your advices

Alain


Robo
Guest
Quote
2020-04-27 10:52:45

Seems there is a conflict every 1 sec as on 2nd run of 500ms offsett against the 1000 ms timings...hence a timing issue.

I tried an alternative way but would not work....that's all I have for now..


yalazkan
Registered User
Quote
2020-04-27 14:42:32

You can use billboard instead of mesh.
Billboard objects turn themselves to the camera automatically.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible 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


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact