need help with tshirtbooth video on magnitude, please

guillefaceguilleface Member Posts: 1,014
edited November -1 in Working with GS (Mac)
ok so iam trying making a enemy shoo when iam close to certain distance, but icant see the formula on the video, i already try the one on the text book i bought but i wont work, can someone show me hows the formula entered pliz

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    magnitude(self.position.x-position.x,self.position.y-position.y)
  • creativeappscreativeapps Member Posts: 1,770
    I want to create ragdoll style cannon where depends on user tap distance cannon fire.
    For example distance between cannon and user tapping is 50 pixel that time cannon fire slowly and when distance is 320 pixel cannon fire with full power. is it works with magnitude?
  • MammothMammoth Member Posts: 640
    An enemy shoo.

    This made me laugh
  • creativeappscreativeapps Member Posts: 1,770
    thanks a lot tshirtbooth email sent to you.
  • creativeappscreativeapps Member Posts: 1,770
    thanks a lot tshirtbooth I got your demo.
Sign In or Register to comment.