Game Development Community

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.

#1
02/28/2006 (1:47 pm)
In fact I have no idea how people learn this stuff. there's really only one tutorial I know of.

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
#2
02/28/2006 (1:53 pm)
Use triggers, and check these tutorials.
#3
02/28/2006 (3:26 pm)
Thanks for the tutorial reference. I found exactly what I needed to know :)