Hi,
I need a way to find out the "id" of the object that was collided with, is there anyway to do that?
-Thanks, Variant
Printable View
Hi,
I need a way to find out the "id" of the object that was collided with, is there anyway to do that?
-Thanks, Variant
Two different objects? Or same object?
The same one, that's why it's so confusing.
-Thanks, Variant
You're probably going to need a detector on one of the objects at least. Otherwise it will be impossible to determine which object's id you are retrieving.
How exactly would I do that?
-Thanks, Variant
You might be able to use a qualifier to differentiate between the two objects in the collision. In other words, you could give your object the qualifier "Group.0" and then do the event like this:
"My Object" overlapping "Group.0"
-->Do something with Alterable Value A of Group.0
I think that'll work. I'm not positive.
I'm not sure I'll see.
-Thanks, Variant
or have a detector and
* ID of ("Detector") = ID of ("object")
- Set X position of ("Detector") to X("object")
- Set Y position of ("Detector") to Y("object")
and change the collision condition to Detector overlapping object...
just make sure that the detector has the same id as its object and that it isn't overlapping the object
That works nicely, thanks!Quote:
Originally Posted by RickyRombo
-Variant
No problem! Glad it worked :)