Player's Position
by Brian Wilmeth · in Torque Game Engine · 02/28/2006 (1:46 pm) · 3 replies
I'd like to test the player's POSITION in script and
if(x>100 && y>100)
//SOMETHING CRAZY HAPPENS ONCE
Is there a way I can collide with air and still produce a collision effect. I want something to happen when my player reaches a certain area.
Also I've been frantically searching for documentation for simple stuff like how to find
player position,
rotate him,
translate him,
etc in script..
I haven't found any good resources. 5718.tge_console_cmds.rtf has nothing on simple translations, rotations, etc..
I don't know where to look.
if(x>100 && y>100)
//SOMETHING CRAZY HAPPENS ONCE
Is there a way I can collide with air and still produce a collision effect. I want something to happen when my player reaches a certain area.
Also I've been frantically searching for documentation for simple stuff like how to find
player position,
rotate him,
translate him,
etc in script..
I haven't found any good resources. 5718.tge_console_cmds.rtf has nothing on simple translations, rotations, etc..
I don't know where to look.
About the author
Torque Owner Brian Wilmeth
I have the 50$ all in one game programming but the function they use for scaling
setScale doesn't work!.. I'm assuming the function changed between versions