Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
It would be amazing if there was a specific tutorial on learning JavaScript for coppercube because sure there's allot of JavaScript learning videos out there but if you just know JavaScript you have to learn the api |
||||
|
if you know javascript then I think the API of Coppercube is pretty self explanatory. |
||||
|
Coppercube have good scripting reference page with examples.. i came from Basic to javascript and had no problems to understand it.. so if you know a little javascript then you are good to go. |
||||
|
i agree with both of you |
||||
|
|
||||
|
|
||||
|
I mean more like explaining what everything on the page does I understand they have the descriptions on the page but idk allot of reading |
||||
|
@JIC @spicymilk Reading is fundamental, friend. You can't escape it. If you have a question about code you can post it in the appropriate section of the forums ('Programming and Scripting') and we will gladly take a look. If I were just starting out with the API, I would make a scene where I use every single function to do something small. Nothing helps with learning more than doing. Tutorials are fine and all, but if you don't use it, you lose it. |
||||
|
wrote: I mean more like explaining what everything on the page does I understand they have the descriptions on the page but idk allot of reading reading and writing is very important part of the life of the programmer.. i read alot and i write alot :D You dont have to read whole thing.. just take commands you need.. take first most used command PRINT then see what it does and how to use.. Now take another command.. GetSceneNodebyname and getscenenodeproperty Use those two commands to print out position info /name / scale / rotation info.. then do keep exploreing.. Thats how you learn :D |
||||
|
Guest wrote: This is very relavant to me . |
||||
|
spicymilk wrote: It would be amazing if there was a specific tutorial on learning JavaScript for coppercube because sure there's allot of JavaScript learning videos out there but if you just know JavaScript you have to learn the api I get what you mean: something starting with the basics like a template with javascript.. for example.. I have a basic example of my own with my town sim... its needs are basic ones like: Move a model (walk mode) to a position bounce the movement so the model comes back to where it came from (+z then -z) rotate a model when colliding with a sensor block change model animations... (play, stop)... It´s good to find a template and check around in their own JS scripts to see what each thing does, hoping to see comments on the code though |
|