This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-20 09:19:47

TitsMcghee
New Scratcher
Registered: 2012-06-06
Posts: 5

Help avoiding heatseeking

For a school project we had to do a launcher program(ballistic not programme) i included heatseeking but i wonder how to make a way to avoid it

Offline

 

#2 2012-06-20 16:52:48

parcheesidude
Scratcher
Registered: 2009-10-07
Posts: 500+

Re: Help avoiding heatseeking

May I see the original? Please post me a link on my projects.


My signature is trying to find itself :3

Offline

 

#3 2012-06-20 17:30:34

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Help avoiding heatseeking

When the missile gets to within a certain distance have it lose lock and continue in the same direction without heatseeking. That way it will still heatseek but is also avoidable.

repeat until (distance to Sprite (1) is < (20) )
point towards Sprite (1)
move (5) steps
then..
repeat until <touching (edge)>
move (5) steps


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

Board footer