place_meeting in 2.3 doesn't work

L

looreenzoo86

Guest
The place_meeting () function works not very well! I attach image.
Within the scope of the structure this function does not work and will always return 0 (false).
But, accessing from the main scope of the instance works... Maybe bug?

Ok.png
 

TsukaYuriko

☄️
Forum Staff
Moderator
Checking for collisions at the coordinates of something is not the same as having the something check for collisions at its own coordinates. This function uses the mask of the calling instance. If it doesn't have one, no collisions will be registered.

What is actor? Is it an instance? If so, does it have a mask assigned? Is it a struct? Then it can't detect collisions against its mask because it has no collision mask.
 
L

looreenzoo86

Guest
Actor is a struct. Probably the function does not recognize the mask within the scope of the structure. For this it works only outside the script because it sees the integrated variables of the object... Thank you!
 
Top