Here’s another big problem from the book 2D Game Building for Teens. Yes, the code examples are in rotten shape but the book as a whole is a good intro to Torque Game Builder — just make sure you keep checking back here for the fixes. =;)
On pages 163 and 169 the book shows the code for player.cs — and besides the problem shown in Errata #1 on this site, there is a huge chunk of the code shown that shouldn’t be there.
Basically, these functions…
BattyPlayerUp() BattyPlayerDown() BattyPlayerLeft() BattyPlayerRight()
…are duplicated.
The first set shouldn’t be there — just rip those four functions right out and you should be good to go.
(Posted in: Torque 2D, Torque Game Builder, TorqueScript)