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

#1 2008-11-29 06:59:03

scratchie1234567890
Scratcher
Registered: 2008-10-26
Posts: 8

How to create a Jet Fighter and enemy missile AI

How do you create a jet fighter AI and an enemy missile AI. Also how do you creat a friendly missile. Help will be much appreciated.

Offline

 

#2 2008-11-29 07:43:58

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: How to create a Jet Fighter and enemy missile AI

Sorry if this may sound stupid, but what's a friendly missle?
Jet fighter AI: What should it do?
Enemy missle: Just tries to continuously shoot the player, I assume?
<when green flag clicked>
  <forever>
    <go to[ jet fighter ai
    <point towards( player
    <repeat until><< <touching[ edge <or> <touching[ player >>
      <move( 5 )steps>
    <end>
  <end>

Offline

 

#3 2008-11-29 22:50:11

scratchie1234567890
Scratcher
Registered: 2008-10-26
Posts: 8

Re: How to create a Jet Fighter and enemy missile AI

thanks that should get me on track, ill just add in velocity so u can actually dodge the missiles. Thanks

P.S a friendly missile is a missile either shot by you or your allie.

Offline

 

#4 2008-11-29 23:04:04

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: How to create a Jet Fighter and enemy missile AI

then make the "allied" missile <point towards( enemy unit

Last edited by big-bang (2008-11-29 23:04:12)


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#5 2008-11-30 06:47:37

wooheatblast
Scratcher
Registered: 2008-11-29
Posts: 19

Re: How to create a Jet Fighter and enemy missile AI

idk

Offline

 

#6 2008-11-30 08:13:03

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: How to create a Jet Fighter and enemy missile AI

scratchie1234567890 wrote:

thanks that should get me on track, ill just add in velocity so u can actually dodge the missiles. Thanks

P.S a friendly missile is a missile either shot by you or your allie.

Got it. Then for the friendly missles, programming is easy...

<when green flag clicked>
  <forever>
    <go to[ player
    <point towards( enemy
    <repeat until><< <touching[ edge <or> <touching[ enemy >>
      <move( 5 )steps>
    <end>
  <end>

Offline

 

Board footer