Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 1 of 2 |
|
|||||
|
Greetings! Where can I start to learn JavaScript for CopperCube and game making in general? Thanks! |
||||
|
First thing you should do is read the CC documentation found here: https://www.ambiera.com/coppercu... For JS you can use this site: https://www.w3schools.com/jsref/... Note: CC uses an older version of JS so some of the functionality in the newer versions doesn't work. There's videos on YouTube like "Learn JS in One Hour!" or whatnot. Taking the time to watch one of those can help speed up your learning. Pay special attention to this page from CC's documentation: https://www.ambiera.com/coppercu... These functions are pretty much the lifeblood of coding projects in CC. That should get you started. |
||||
|
Thanks!! ![]() |
||||
|
@waterdrinkingfox You're welcome! I did just notice I posted the wrong link for the w3schools site. I meant to show you the JS tutorial here: https://www.w3schools.com/js/def... |
||||
|
See also the Mozilla Developer Network (MDN)... https://developer.mozilla.org/en-US/docs/Web/JavaScript |
||||
|
A good site to learn javascript: https://pt.khanacademy.org/compu... |
||||
|
I'm assuming Spidermonkey is the javascript engine used in CopperCube. But what version/revision is it? And what keeps it from being revised to the latest version? |
||||
|
good advice's guest! |
||||
|
Found it amusing that while the devs claim that javascript is supported, in actual practice, you will discover that many javascript keywords are not supported, which obviously becomes a major roadblock in our game development . As others have pointed out, coppercube runs on an older version of javascript, if so, how old ? The current ES6 was revised in 2015, while ES5 came out in 2009 ? Or is the javascript some kind of special blend like SpiderMonkey as stated by someone on another post ? The level of transparency and disclosure is really lacking here. What is the point of us after having learnt a coding language but find that our code cannot work 100% in the 1st place ? Game development itself is already a PITA and a hair pulling struggle in the 1st place, the last thing we need is a incomplete half functioning feature on the platform. So should we still consider buying their so-called 37 euros for professional edition & 126 euros for Studio edition ? When the free edition is not even fully functioning in the beginning ? |
||||
|
@Guest, Coppercube uses Spidermonkey version 1.8, it's been known to a lot of people, if you have any doubts you can always send text to office@ambiera.com or use the contact button to ask the developer himself. Since Coppercube has gone free, forum is filled with loads of repeative questions so it is not possible for the developer to answer all of those repetative questions. Most of the experienced users try to avoid answering repeatative questions lately. |
||||
|
@Guest The website I posted tells you which features are available for which versions. Current version is ES2022 not ES6. Here's ES5: https://www.w3schools.com/Js/js_... @eoh Thanks! |
||||
|
Omg, I just googled and discovered that it actually supports "let" statement in version 1.8. So cool. And also reduce and reduceRight. |
||||
|
I'm wondering if it's possible to create an AI routine for a character in CopperCube's Javascript (SpiderMonkey 1.8). |
||||
|
@luposian you can make a complicated behavior, indeed. it's not AI, however, as that is a marketing term. you need to understand vector math. |
||||
|
Luposian maybe I am wrong about your object, but if I am right about you want to do, is possible using coppercube internal and third party extensions made from coppercube users to create what you want to do. How you will ask, the answer is using variables and conditions, simple example of this take from 2d game mario bros, the basic enemy move checking variables, if the variable is 1 the enemy walk to left direction, if the variable is 2 the enemy walk to right direction. using two box, when the enemy colide or enter in sensor of left box set variable 2, when the enemy colide or enter in sensor of right box set variable 2. Other example was the video of sven made and deleted of industrial production using path from his AI extension, Explain with more details using one especific enemy ai behavior that you want to make for us understand what you want be create in coppercube game. thanks the atention and I hope we can help give life for your project |
[ 1 2 ] Page 1 of 2 |
|