RMDB
February 11, 2025, 4:35pm
6
I dunno if it’s what you need but …
imo you should assign an individual ID var for each ball,count then increment the scene var by 1, so all balls have different IDs. After that you should be able to check individual collisions.
What you want to do is:
Condition:
At the beginning of the scene
Action:
Do = 0 to variable counter
Repeat for each object objectName
—Do = Variable(counter) to variable ID of objectName
—Do + 1 to variable counter
Then you can use the object variable ID to identify each instance and to pick a specific instance.
What do the objects represent? What happens when then reach each other? Are the objects spread out? Are there teams or is it just a free for all? Would multiple objects lock onto the same closest object?
All of that matters. If one object targets another would the other target it? Or do they continuely run around chasing the closest object?
If you don’t have a lot of objects then you could stick a second object to each one. Then you wouldn’t need to save the location. If there are a lot, you c…