Sounds cool ! What engine are you working on ? Maybe I can help you figure it out
gdevelop
ok, I never worked with gdevelop so I don't know