Triggers, Collisions, & changing Grahpics
by Scott Peal · in Torque Game Engine · 06/20/2004 (4:48 pm) · 3 replies
Say you have a pinball machine(DTS) and you need the character to press a button on the pinball machine. When the button is pressed, the pinball machine's graphic on the scoreboard will change to another graphic.
Question: How do you recommend I do this? and how would I change the graphics on the fly? Is even possible for the character to "hit" a button?
Thanks so much for a point in the right direction.
Question: How do you recommend I do this? and how would I change the graphics on the fly? Is even possible for the character to "hit" a button?
Thanks so much for a point in the right direction.
About the author
Step 1) be the indie, step 2) make enough to buy a commercial license :)
Associate Ben Garney
There are a few resources that demonstrate use keys, but the basic idea is to cast a ray or check against a bounding box to see what the user was facing when they hit the key, then call script or C++ to trigger some action.