You are not logged in.
Pages: 1
Hi all, it's been a while
so I decided to pick up Open Surge again, as my engine of choice to create an arcade game.
One thing that struck me, is if it is even possible to determine the middle point of a collision, like where one object intersects the other. That I was never able to figure out, and don't even know if it is technically possible with the current API.
thoughts?
https://discord.gg/w8JqM7m ---> Open Surge's Discord server
Offline
Hi KZR, welcome back.
What do you mean, the middle point of a collision? Are you using the bounding box method? If so, it's a math problem that you can solve with the current API.
Offline
I mean, in an on_collision condition, is there a way to know where both objects are touching? I'm not sure what you mean with "bounding box method"
https://discord.gg/w8JqM7m ---> Open Surge's Discord server
Offline
on_collision doesn't inform you of that, but you can calculate the exact area by using functions like xpos() and width().
Offline
Pages: 1