Command for place_meeting
by M. Ugur Karakaplan · in Torque Game Builder · 07/03/2007 (12:42 pm) · 2 replies
I need a command controlling if the object at x,y meets another object. It is different then collision checking in the sense that when collision polygons' lines hit each other, it is counted as collision, but it is not a meeting of objects. When collision polygon bodies intersect that is a meeting. So the function will return false when surrounding collision polygon lines touch eachother, but will return true when the collision polygon areas overlap. The function oncollision always returns true in both cases.
For those who are familiar with Game Maker, there is a command, place_meeting(x,y,object) which is what I actually need. In TGB I found a command, getispointinobject(x,y) which does not solve the problem but works in a similar direction because it cannot identify if a collision is a 'touch collision' or 'meeting collision'.
If there is no command for this task, is there a way to measure this?
For those who are familiar with Game Maker, there is a command, place_meeting(x,y,object) which is what I actually need. In TGB I found a command, getispointinobject(x,y) which does not solve the problem but works in a similar direction because it cannot identify if a collision is a 'touch collision' or 'meeting collision'.
If there is no command for this task, is there a way to measure this?
#2
07/04/2007 (10:24 am)
Trigger worked. But every object has to create its own trigger. Still this is a solution. Thanks.
Torque Owner Melissa Niiya
tdn.garagegames.com/wiki/TGB/Reference:_t2dTrigger
It depends on what you are trying to do...TGB is not Gamemaker, so at times you have to think about the project in a different way. What are you trying to accomplish with the meet detection?