Hello, I’m making a game about merging same level balls to make higher level ones. The problem is that all balls are the same object, and I can’t detect when they collide with eachother. Here’s the game project:
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
ZeroX4
August 22, 2024, 8:20pm
2
I did seen your message on discord i just forgot to reply to you but here is as good as there
Try repeat for each object
And / or distance between two object instead of collision check
I remember i saw it somewhere working i just don’t remember exactly how
Damn i think i just found it
This is discord link
Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.
And option B 4:09
The solutions that you offer don’t work.
ZeroX4
February 11, 2025, 10:52am
4
Which cause there are 2 different ones
None of them, I tried both.
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…