Game Development Community

Program Break question

by james burch · in Torque Game Engine · 05/03/2014 (12:38 am) · 1 replies

Hello again and I hope that youre all doing fine :)
I am using TGE 112 Demo that came with 3dgpai1 2004

I am trying to create a pause in the program at onCollision.
So , I put in a little while loop at the point where I want it to pause
so i can examine the console messages . I want to resume with a press of
spacebar . <- sounds like some good candy :)
I think that Im close with
while
[
$mvtriggercount2 == 0
]
But Im not sure of how to get the value that can be evaluated .
or if thisll even work as I hope . It seems to work but the spacebar
press has no effect When it works Ill paste it into various functions .
OK , Thanks in advance . and have a nice day:)
I wont bore you now with how surprisingly fun this demo has been so far .


About the author

Bare-Bones beginner , 49 yrs old , sooo im setting my sights on becoming an accomplished hobbyist with the patient cooperatin of the kindly knowledge folks . and THANK YOU :)


#1
05/03/2014 (2:53 pm)
I wont bother to edit that .
however;
function Wehicles::onCollision(this, that, theOther)
echo(this)
echo(that)
While ($mvtriggercount2 == 0)
{

}
Ive been trying 1 or 2 if( sth ) and for (sth; sth; sth)
inside the stakementBlock but i either cant get out or It exits Immediately .
Thank You All .