? [SB4] Does anyone know how to make homing bullets? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Migrating to a new website for SmileBASIC 4

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

  • #1 ✎ 3 TennoHack 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 Posted
  • #2 ✎ 1090 Yolkai Head Admin https://smilebasicsource.com/page?pid=971#movement there's some introduction and then relevant code for a follow routine Posted Edited by Yolkai
  • #3 ✎ 3 TennoHack
    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!
    Posted Edited by TennoHack