Game Development Community

Errors in the Fish Game Tutorial

by Luke S · in General Discussion · 05/18/2007 (3:08 pm) · 1 replies

In the fish game tutorial - part 2 - "moving a fish" I believe there are a few errors. I copied the code exactly as the tutorial shows it, but when I run the game and try to move the fish, it says there are two script errors and nothing happens. I made sure I saved the script and re-opened TGB. I believe one error involves quotation marks: exec("./player.cs"); While in another place in the tutorial it looks like this: exec('./player.cs'); I haven't been able to find the other one. Really, all I want to know is how to bind a key to make the fish move. I would appreciate any feedback.

#1
05/18/2007 (3:31 pm)
You exec scripts this way.

exec("./player.cs");

There is problem with the code in the tutorial but I dont think you are allow to put it in the public form. If I am wrong someone hopefully will correct me.