How to make character objects bounce off each other

I have one problem. I’m trying to recreate a popular horse racing simulation game that’s trending on Twitter. But when I try to make the objects collide and bounce off each other, it doesn’t work—although bouncing off walls works fine. I’ve already tried using the bounce behavior before. I’m also using a global group and assigning unique variables to each horse.

For example, there are horses with variables Name and ID:

  • Merah = 1
  • Biru = 2
  • Yellow = 3
  • Putih = 4

I even tried asking ChatGPT, but I ended up getting a script response that felt kind of random
Here are some of the codes I tried.


horsecode2

Hi!

It is not useful and even crap to repeat “Repeat for…” in the second evenement.

A+
Xierra

Use physics 2.0 it’s better for this kind of logic. Increase restitution for horses.