how would i make and element seek a stkm

  • jward212
    23rd Sep 2014 Member 0 Permalink

    basicly what the title asks

    an element that moves toward a stkm


    how do i make one of an element allowed at one time

    Edited 2 times by jward212. Last: 23rd Sep 2014
  • boxmein
    23rd Sep 2014 Former Staff 0 Permalink
    Well, in short, you should find out the direction towards the STKM and approximate moving towards it (with your selected speed) by adjusting the particle's vx and vy values. You could also add an option that turns off seeking once it gets close enough, but that requires you to calculate distance as well.