Game Development Community

How to change missile speed in ScrollerDemo?

by Ben "Djaggernaut" Chavigner · in Torque Game Builder · 05/25/2008 (11:29 am) · 2 replies

Hi, I'm trying to resurrect an old project for my final art exam and I have a simple question: well the title sum it all.
How can I change the missile speed (for both player and ennemy) in the Scroller Demo? I'm using a very old version of TGB (1.1.3), so if anyone remember how to do that...

I've read all the .cs files and can't find anything...


Thanks!

#1
05/25/2008 (12:31 pm)
Theres a variable in that project $missileSpeed... if you update the value of that variable, chances are you will change the missile speed...

another option is, reviewin the code of the project, and find the function that fires the missiles, and change the value in the line that says somethin like %this.setLinearVelocityX(YY);... change YY with any value yo like and missile speed will change.
#2
05/25/2008 (1:17 pm)
A dynamic field was used on both the player and enemy ship which controlled the missile speed. One of the nice things about TDN is that you can go back in time and look at the shooter tutorial from 1.1.3 even though the current version is for 1.7.3.

tdn.garagegames.com/wiki/index.php?title=TGB/BasicTutorial4&oldid=7613