Make a rocket home in on something, but only has a certain turn rate (in other words, it would not be following you very closely, but swerving off track at times)
Offline
I think if I understood what your trying to say right this should work assume person is the rockets target and rocket is well.... the rocket. You will alsol need a variable
<forever>
<set{ rocketpath }to( <pick random( 1 )to( 10 ))>
<if><( <{ rocketpath }> <<> 2 )>
<turn cw( 15 )degrees>
<move( 10 )steps> <-Replace with however far you want it to move
<wait( .2 )secsc>
<else>
<point in direction( person)>
<move( 10 )steps> <- once again replace with how far you want it to move
<wait( .2 )secsc> <- Mess with the wait time to suit your needs lower time
means itll move faster and probally less laggy
Hopefully that will do what you need.
Offline
its gonna need some sencing but ill get you started on the right track. Just think of somehow that if the rocket needs to point more to the left in stead of just poiting to the sprite, turns to the left slowly. same with the right side aswell.
Offline
I don't think you understand my goal. Have any of you, by any chance, played N (the game)? If yes, I want a rocket similar to the ones there.
A very BAD example: http://scratch.mit.edu/projects/bhz/343221
yambanshee wrote:
its gonna need some sencing but ill get you started on the right track. Just think of somehow that if the rocket needs to point more to the left in stead of just poiting to the sprite, turns to the left slowly. same with the right side aswell.
The whole reason I made this thread was to ask how to do that.
Last edited by bhz (2008-12-06 18:29:16)
Offline