Second FishTutorial
by Claus Junkes · in Torque Game Builder · 08/28/2006 (9:50 am) · 1 replies
Hello,
first, sorry my english is not very good.
I'm relative new here and i bought the Professional version (home use).
I have an reference about the second Fish-Tutorial. I read and understand it. Works well, except when
the fish dies. In this case %this.dead = true; (Chapter 6).
My goal was to close the Boost (with space - The fish move faster). In the 'updateMovement'-Funktion
this: if(%this.dead) return; works. I can't move the fish normal. Ok.
But in the function fishPlayerBoost() is the same: if(%this.dead) return; (exactly as in the Tutorial)
And this does not work.
In the original game demo there is the same thing. The Fish is dead, but i can use the Space-Key.
After 2 newbie-hours i change this in: function PlayerFish::fishPlayerBoost()
Now it works. Im very glad that i figured out the solution on my own :)
I hope this is a good way. And i wrote this text. Maybe some users have the same little problem.
Greetings!
first, sorry my english is not very good.
I'm relative new here and i bought the Professional version (home use).
I have an reference about the second Fish-Tutorial. I read and understand it. Works well, except when
the fish dies. In this case %this.dead = true; (Chapter 6).
My goal was to close the Boost (with space - The fish move faster). In the 'updateMovement'-Funktion
this: if(%this.dead) return; works. I can't move the fish normal. Ok.
But in the function fishPlayerBoost() is the same: if(%this.dead) return; (exactly as in the Tutorial)
And this does not work.
In the original game demo there is the same thing. The Fish is dead, but i can use the Space-Key.
After 2 newbie-hours i change this in: function PlayerFish::fishPlayerBoost()
Now it works. Im very glad that i figured out the solution on my own :)
I hope this is a good way. And i wrote this text. Maybe some users have the same little problem.
Greetings!
Associate David Higgins
DPHCoders.com
If this is the case, what did you change? Please provide the code as it was said to be typed according to the tutorial and then your modified version of the code that works correctly -- would be greatly appreciated (and helpful to the 'newb' community)