Mount confusion
by Bucko · in Torque Game Builder · 03/20/2005 (12:59 pm) · 2 replies
I have two objects $player and $playerWings, both are fxAnimatedSprite2D.
I mount $playerWings and turn everything on $player.mount($playerWings,"0 0",0,true,true,true,true);
I though mounting with inheritance would have $playerWings inherit velocity, flip etc from $player but it seems to be the other way around ie if I give $playerWings some velocity, both will move, if I give $player nothing will move and if I give both the same velocity both will move.
Are we to think of $player.mount($playerWings,"0 0",0,true,true,true,true); as telling T2D we want the $player to 'mount' the $playerWings ie to ride it, inheriting its speed etc?
I mount $playerWings and turn everything on $player.mount($playerWings,"0 0",0,true,true,true,true);
I though mounting with inheritance would have $playerWings inherit velocity, flip etc from $player but it seems to be the other way around ie if I give $playerWings some velocity, both will move, if I give $player nothing will move and if I give both the same velocity both will move.
Are we to think of $player.mount($playerWings,"0 0",0,true,true,true,true); as telling T2D we want the $player to 'mount' the $playerWings ie to ride it, inheriting its speed etc?
About the author
Torque Owner Matt Van Gorkom
$playerWings.mount($player, etc... ); would be mounting $playerWings to $player.