# Latest

**URL:** https://talk.code3dgames.com/latest.md?page=2

[Latest](https://talk.code3dgames.com/latest.md) · [Categories](https://talk.code3dgames.com/categories.md)

**Page:** 3

---

## [2 Errors on one Day :D oof](https://talk.code3dgames.com/t/2-errors-on-one-day-d-oof/308)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 6\
**Last updated:** [July 12, 2021, 1:05am UTC](https://talk.code3dgames.com/t/2-errors-on-one-day-d-oof/308 "2021-07-12T01:05:23Z")

</div>

So, i wanted to create the fruit but now my whole game is gone. So not like you think i just cant see my Trees and Avatar and the important thing I CANT SEE MY FRUITS Yea my Url!: https://is.gd/qoMPEG

---

## [Can you help me? I hope so](https://talk.code3dgames.com/t/can-you-help-me-i-hope-so/311)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 2\
**Last updated:** [July 12, 2021, 1:05am UTC](https://talk.code3dgames.com/t/can-you-help-me-i-hope-so/311 "2021-07-12T01:05:21Z")

</div>

My Controls for the “OrbitControls” are not working, My script Url https://www.code3dgames.com/3de/#B/lVZtU9s4EP7Or9jJFwwTZEOPaUtpZziao8zwNiTT3lfF2sS6OpJPkkmB4b/fSrIdTAI3DXFCtM++Pbsr6Xiqxf2X4zR8bR3b3MjKgTX550HqCoPI/rE…

---

## [Well my Shadow of the SpotLight is Broken](https://talk.code3dgames.com/t/well-my-shadow-of-the-spotlight-is-broken/312)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 0\
**Last updated:** [July 11, 2021, 4:42am UTC](https://talk.code3dgames.com/t/well-my-shadow-of-the-spotlight-is-broken/312 "2021-07-11T04:42:17Z")

</div>

Yea its pretty weird cuz my donut is sometimes with Shadow and sometimes without

---

## [My JumpAnimation doesn't work](https://talk.code3dgames.com/t/my-jumpanimation-doesnt-work/307)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 3:51pm UTC](https://talk.code3dgames.com/t/my-jumpanimation-doesnt-work/307 "2021-07-09T15:51:22Z")

</div>

So, my JumpAnimation won’t play but when i press at the Tree whos shaking my Score gets up but if i hold Space then the Score goes up EXTREMLY FAST so i can earn at on tree like 1000 Points My Url: https://is.gd/bWdrc…

---

## [My Character's Collision to the Trees is not Working :(](https://talk.code3dgames.com/t/my-characters-collision-to-the-trees-is-not-working/306)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 1\
**Last updated:** [July 9, 2021, 3:55am UTC](https://talk.code3dgames.com/t/my-characters-collision-to-the-trees-is-not-working/306 "2021-07-09T03:55:36Z")

</div>

So i am at the Collisions Chapter and my Character can still run into the “notAllowed” Area.So pls Help me bc. my Ground is appearing but my Character can still run to the Trees. My Url: https://is.gd/TvuwvZ

---

## [So i actully thougt Javascript were easier but nope it insn't](https://talk.code3dgames.com/t/so-i-actully-thougt-javascript-were-easier-but-nope-it-insnt/302)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 4\
**Last updated:** [June 30, 2021, 5:42pm UTC](https://talk.code3dgames.com/t/so-i-actully-thougt-javascript-were-easier-but-nope-it-insnt/302 "2021-06-30T17:42:51Z")

</div>

So well i am now at the end of Chapter 6 and my Character won’t stop swinging his Arms. Yea thats it my script url: https://is.gd/vxlwvo :smiley: Yea. that’s it. Great day!

---

## [Did you miss me? I hope you can help me](https://talk.code3dgames.com/t/did-you-miss-me-i-hope-you-can-help-me/297)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 2:11pm UTC](https://talk.code3dgames.com/t/did-you-miss-me-i-hope-you-can-help-me/297 "2021-06-28T14:11:07Z")

</div>

So, i i am now at chapter 6 and i am at page 75 and i got errors at the js. Console. Console’s output: code.html:124 Uncaught TypeError: Cannot read property ‘GetElapsedTime’ of undefined at walk (VM182 code.html:124) …

---

## [PlanetsColorQuestion](https://talk.code3dgames.com/t/planetscolorquestion/293)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 3\
**Last updated:** [June 24, 2021, 5:48pm UTC](https://talk.code3dgames.com/t/planetscolorquestion/293 "2021-06-24T17:48:47Z")

</div>

My Planets have no Colors i wrote:

---

## [I am at Chapter 5 and my Code editior crashes every time i wrote:](https://talk.code3dgames.com/t/i-am-at-chapter-5-and-my-code-editior-crashes-every-time-i-wrote/292)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 5:34pm UTC](https://talk.code3dgames.com/t/i-am-at-chapter-5-and-my-code-editior-crashes-every-time-i-wrote/292 "2021-06-23T17:34:20Z")

</div>

for (var i=0; i\<100; i++) { makePlanet();} this, the Browser without code editor works, but when i open code editor which saves the code already my Browser starts to freeze and after like 5 seconds it crashes(closes).

---

## [My Character wont move](https://talk.code3dgames.com/t/my-character-wont-move/289)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 3\
**Last updated:** [June 23, 2021, 2:19am UTC](https://talk.code3dgames.com/t/my-character-wont-move/289 "2021-06-23T02:19:23Z")

</div>

I posted once too but you said i should copy and paste the whole code. I hope you can help me (again) :smiley:

---

## [My Character doesn't move :(](https://talk.code3dgames.com/t/my-character-doesnt-move/288)

<div class="topic-metadata">

**Author:** [@Martin](https://talk.code3dgames.com/u/Martin)\
**Replies:** 1\
**Last updated:** [June 20, 2021, 6:07pm UTC](https://talk.code3dgames.com/t/my-character-doesnt-move/288 "2021-06-20T18:07:11Z")

</div>

Explain how your code is misbehaving… When i pressing any Button(ArrowButtons) then nothing happens. // Paste your code here document.addEventListener('keydown', sendKeyDown); function sendKeyDown(event) { var code …

---

## [How to raycast on an object in local coordinates](https://talk.code3dgames.com/t/how-to-raycast-on-an-object-in-local-coordinates/281)

<div class="topic-metadata">

**Author:** [@jdaily](https://talk.code3dgames.com/u/jdaily)\
**Replies:** 0\
**Last updated:** [April 9, 2021, 2:21pm UTC](https://talk.code3dgames.com/t/how-to-raycast-on-an-object-in-local-coordinates/281 "2021-04-09T14:21:46Z")

</div>

Here’s some background: Before I read 3D game programming for kids I knew JavaScript, html5 canvas 2d drawing and some three.js. I’m making a space-shooter game (located at https://black-galaxy-2.glitch.me/ the instruc…

---

## [How to view the electronic version of a book?](https://talk.code3dgames.com/t/how-to-view-the-electronic-version-of-a-book/274)

<div class="topic-metadata">

**Author:** [@wzh](https://talk.code3dgames.com/u/wzh)\
**Replies:** 1\
**Last updated:** [March 3, 2021, 12:53pm UTC](https://talk.code3dgames.com/t/how-to-view-the-electronic-version-of-a-book/274 "2021-03-03T12:53:28Z")

</div>

How to view the electronic version of 3D children’s game programming.

---

## [Walking (Chatpter 6)](https://talk.code3dgames.com/t/walking-chatpter-6/268)

<div class="topic-metadata">

**Author:** [@GolemGon](https://talk.code3dgames.com/u/GolemGon)\
**Replies:** 3\
**Last updated:** [February 13, 2021, 9:14pm UTC](https://talk.code3dgames.com/t/walking-chatpter-6/268 "2021-02-13T21:14:18Z")

</div>

Hey, again I have a question! My code isn’t working how I’d like it to be because it is kind of “buggy” and I don’t know where the problem is tbh :frowning: in the console is a a error: three.js:10505 THREE.Object3D.ad…

---

## [Question about 5 Bonus Part](https://talk.code3dgames.com/t/question-about-5-bonus-part/261)

<div class="topic-metadata">

**Author:** [@GolemGon](https://talk.code3dgames.com/u/GolemGon)\
**Replies:** 2\
**Last updated:** [February 13, 2021, 7:26pm UTC](https://talk.code3dgames.com/t/question-about-5-bonus-part/261 "2021-02-13T19:26:14Z")

</div>

Normally I speak German, but I try to give my best to speak English! In chapter 5 where I can add 100 planets with different color… I wanna add the fly controls, I think I did everything correct but when I hide my code …

---

## [Question about 5 Bonus Part](https://talk.code3dgames.com/t/question-about-5-bonus-part/262)

<div class="topic-metadata">

**Author:** [@GolemGon](https://talk.code3dgames.com/u/GolemGon)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 5:00pm UTC](https://talk.code3dgames.com/t/question-about-5-bonus-part/262 "2021-02-08T17:00:30Z")

</div>

Explain how your code is misbehaving: Hello, i am from Germany and I have a question! I am in chapter 5 (Bonus 2) and I wanna add a plane, but If it type the code in the 3rd line to add the plane this message comes: …

---

## [Question about code in chapter 1 second edition part two](https://talk.code3dgames.com/t/question-about-code-in-chapter-1-second-edition-part-two/256)

<div class="topic-metadata">

**Author:** [@nicholas](https://talk.code3dgames.com/u/nicholas)\
**Replies:** 1\
**Last updated:** [January 3, 2021, 5:11am UTC](https://talk.code3dgames.com/t/question-about-code-in-chapter-1-second-edition-part-two/256 "2021-01-03T05:11:02Z")

</div>

Hi, I have a similar question as last time. So after you told me to check my code I checked it and there was nothing wrong with it. So I got out of the tab for a few days then went back in and it worked. Now I am on page…

---

## [Question about code in chapter 1 second edition part twosolved](https://talk.code3dgames.com/t/question-about-code-in-chapter-1-second-edition-part-twosolved/255)

<div class="topic-metadata">

**Author:** [@nicholas](https://talk.code3dgames.com/u/nicholas)\
**Replies:** 0\
**Last updated:** [January 3, 2021, 4:51am UTC](https://talk.code3dgames.com/t/question-about-code-in-chapter-1-second-edition-part-twosolved/255 "2021-01-03T04:51:00Z")

</div>

Hi, I fixed the problem. There was a typo. Thank you for your help.

---

## [Question about code in chapter 1 second edition](https://talk.code3dgames.com/t/question-about-code-in-chapter-1-second-edition/251)

<div class="topic-metadata">

**Author:** [@nicholas](https://talk.code3dgames.com/u/nicholas)\
**Replies:** 1\
**Last updated:** [December 29, 2020, 5:15pm UTC](https://talk.code3dgames.com/t/question-about-code-in-chapter-1-second-edition/251 "2020-12-29T17:15:48Z")

</div>

Hi, in chapter one when I was coding a square/cube on page 7 it didn’t do anything. I think it didn’t do anything because we used the same variable name for the sphere and square/cube. When I typed the code for the sphe…

---

## [The page can not be found.](https://talk.code3dgames.com/t/the-page-can-not-be-found/239)

<div class="topic-metadata">

**Author:** [@LichKing](https://talk.code3dgames.com/u/LichKing)\
**Replies:** 1\
**Last updated:** [November 9, 2020, 8:00pm UTC](https://talk.code3dgames.com/t/the-page-can-not-be-found/239 "2020-11-09T20:00:37Z")

</div>

---

## [what if it crashes?](https://talk.code3dgames.com/t/what-if-it-crashes/231)

<div class="topic-metadata">

**Author:** [@GXSCOTTIV](https://talk.code3dgames.com/u/GXSCOTTIV)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 11:33am UTC](https://talk.code3dgames.com/t/what-if-it-crashes/231 "2020-10-01T11:33:00Z")

</div>

what do I do if the code editor crashes and every time I go back into it I get an error message

---

## [https://talk.code3dgames.com/t/have-a-question-and-a-request/223](https://talk.code3dgames.com/t/https-talk-code3dgames-com-t-have-a-question-and-a-request-223/226)

<div class="topic-metadata">

**Author:** [@ljwq](https://talk.code3dgames.com/u/ljwq)\
**Replies:** 1\
**Last updated:** [August 20, 2020, 4:48pm UTC](https://talk.code3dgames.com/t/https-talk-code3dgames-com-t-have-a-question-and-a-request-223/226 "2020-08-20T16:48:44Z")

</div>

// \*\*\*\*\*\*\*\* START CODING ON THE NEXT LINE \*\*\*\*\*\*\*\* var shape=new THREE.SphereGeometry(100); var cover=new THREE.MeshNormalMaterial(flat); var ball=new THREE.Mesh(shape,cover); scene.add(ball); // Now, show what the …

---

## [Have a question and a request](https://talk.code3dgames.com/t/have-a-question-and-a-request/223)

<div class="topic-metadata">

**Author:** [@J\_Squared](https://talk.code3dgames.com/u/J_Squared)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 12:24pm UTC](https://talk.code3dgames.com/t/have-a-question-and-a-request/223 "2020-08-17T12:24:37Z")

</div>

I’m still using the 2013 version, which is the first edition of the book. Unfortunately, the source code on the pragmatic bookshelf website is for the second edition, which does not work in ICE for some reason, even if I…

---

## [I have some Questions](https://talk.code3dgames.com/t/i-have-some-questions/188)

<div class="topic-metadata">

**Author:** [@BlackFire](https://talk.code3dgames.com/u/BlackFire)\
**Replies:** 33\
**Last updated:** [July 14, 2020, 12:20pm UTC](https://talk.code3dgames.com/t/i-have-some-questions/188 "2020-07-14T12:20:00Z")

</div>

Hey, I started one week ago with JavaScript. I use a Laptop of my parents, and on this Laptop is no Chrome. I tried to at an Eventlistener to move the avatar, The normal Internet Explorer done nothing. I tried to hit e…

---

## [Empty folders in source code](https://talk.code3dgames.com/t/empty-folders-in-source-code/195)

<div class="topic-metadata">

**Author:** [@iZa36](https://talk.code3dgames.com/u/iZa36)\
**Replies:** 1\
**Last updated:** [March 12, 2020, 4:11am UTC](https://talk.code3dgames.com/t/empty-folders-in-source-code/195 "2020-03-12T04:11:22Z")

</div>

Dear, I’m not a kid anymore but I do like your book and cannot let it down since yesterday :wink: I downloaded the source codes twice or more but many folders are empty… what happens ? Thank you so much for your work …

---

## [Question about code in chapter 4](https://talk.code3dgames.com/t/question-about-code-in-chapter-4/177)

<div class="topic-metadata">

**Author:** [@1234](https://talk.code3dgames.com/u/1234)\
**Replies:** 11\
**Last updated:** [January 20, 2020, 4:40pm UTC](https://talk.code3dgames.com/t/question-about-code-in-chapter-4/177 "2020-01-20T16:40:09Z")

</div>

Hello need help with the code in chapter 4. I tried to lrt the acvatar flipping with the button C but my avatar won’t flip. It makes a Cartwheel. here is the code: Thanks

---

## [Question about code in chapter 8: Everything Goes Gray](https://talk.code3dgames.com/t/question-about-code-in-chapter-8-everything-goes-gray/174)

<div class="topic-metadata">

**Author:** [@J\_Bird50](https://talk.code3dgames.com/u/J_Bird50)\
**Replies:** 1\
**Last updated:** [January 1, 2020, 4:54am UTC](https://talk.code3dgames.com/t/question-about-code-in-chapter-8-everything-goes-gray/174 "2020-01-01T04:54:50Z")

</div>

Hey Chris, I was working on the turn function in chapter 8 and I added the function. Then, I put ‘turn();’ in the requestAnimationFrame(animate) line and it went gray. Code: function animate() { requestAnimationFram…

---

## [Question about chapter 5](https://talk.code3dgames.com/t/question-about-chapter-5/167)

<div class="topic-metadata">

**Author:** [@Anthony48](https://talk.code3dgames.com/u/Anthony48)\
**Replies:** 1\
**Last updated:** [October 21, 2019, 10:44pm UTC](https://talk.code3dgames.com/t/question-about-chapter-5/167 "2019-10-21T22:44:08Z")

</div>

They’re flat the code: // \*\*\*\*\*\*\*\* START CODING ON THE NEXT LINE \*\*\*\*\*\*\*\* var shape = new THREE.SphereGeometry(50, 20, 15); var cover = new THREE.MeshBasicMaterial({color: ‘blue’}); var planet = new THREE.Mesh(sh…

---

## [Question about code in chapter 4](https://talk.code3dgames.com/t/question-about-code-in-chapter-4/158)

<div class="topic-metadata">

**Author:** [@Anthony48](https://talk.code3dgames.com/u/Anthony48)\
**Replies:** 4\
**Last updated:** [October 12, 2019, 11:28pm UTC](https://talk.code3dgames.com/t/question-about-code-in-chapter-4/158 "2019-10-12T23:28:13Z")

</div>

I typed this: makeTreeAt( 500, 0); makeTreeAt(-500, 0); makeTreeAt( 750, -1000); makeTreeAt( -750, -1000); But this happened: It’s weird

---

## [Can´t find code examples](https://talk.code3dgames.com/t/can-t-find-code-examples/161)

<div class="topic-metadata">

**Author:** [@Hans](https://talk.code3dgames.com/u/Hans)\
**Replies:** 4\
**Last updated:** [October 4, 2019, 11:32am UTC](https://talk.code3dgames.com/t/can-t-find-code-examples/161 "2019-10-04T11:32:23Z")

</div>

As written in the book, it should be possible, to copy the sourcecode of the examples. But unfortunately I don´t know, where to finde the code of the exaples on this webpage. Can you help me please?

[Previous page](https://talk.code3dgames.com/latest.md?page=1)

[Next page](https://talk.code3dgames.com/latest.md?page=3)
