LoginLogin
Might make SBS readonly: thread

[SB4] Does anyone know how to make homing bullets?

Root / Programming Questions / [.]

TennoHackCreated:
I'm making a top down shooter and I want enemies to drop a couple coins that fly off in random directions before being pulled into the player, you know that effect? Also want to make a homing bullets upgrade in the future, but i feel like these will both require similar code. I think needs to use angular velocity to get the desired effect but i don't know how to do that and Google has never helped with SmileBasic. Can anyone explain it or point me to a good tutorial

https://smilebasicsource.com/page?pid=971#movement there's some introduction and then relevant code for a follow routine

https://smilebasicsource.com/page?pid=971#movement there's some introduction and then relevant code for a follow routine
Exactly what I needed! Thank you! I was able to make a demo where a strawberry runs in a circle while an orange follows him, and now I think i'm ready to use this for real!