Mission area
by arteria3d · in Torque Game Engine · 02/01/2005 (11:23 am) · 3 replies
Please could someone assist me here, as for ages i have been pondering and looking at source and script on how to do it.
On this forumn, there are methods to keep the player within a boundary... forcefields etc... but i simply wish to confine my player to a set area, without using such methods.
My knowledge tells me... that say u have the x and y as 0 to 1000
then worked into the player movement code in souce, u could attach the If statment to the movement.
i.e. if player >0 or <1000 then .... allow move..
The above is so easy to work... but looking through source i cannot find the code i need to chage.
Can anyone help please
On this forumn, there are methods to keep the player within a boundary... forcefields etc... but i simply wish to confine my player to a set area, without using such methods.
My knowledge tells me... that say u have the x and y as 0 to 1000
then worked into the player movement code in souce, u could attach the If statment to the movement.
i.e. if player >0 or <1000 then .... allow move..
The above is so easy to work... but looking through source i cannot find the code i need to chage.
Can anyone help please
About the author
Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com
#2
Just a pointing to the code,... that is used for movement that i can implement the IF condition
Cheers
02/01/2005 (11:28 am)
No mate... thats one of the ways i dont want to do itJust a pointing to the code,... that is used for movement that i can implement the IF condition
Cheers
#3
02/01/2005 (11:43 am)
The last post in this thread should be the right direction. If you don't want to use the mission area coordinates it should be easy to hardcode the values there.
Associate Anthony Rosenbaum