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

#1 2009-06-01 12:47:29

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Enemy Ships

Hey.

I'm trying to make a game where you are controlling a spaceship and there are enemy ships trying to kill you. I'm want to do this where the enemy ship rotates to point towards the player's ship, but everythign I have tried hasn't been perfect.

I've tried making it so that the enemy ship rotates 3 degres until it is facing the ship, but sometimes it misses it, and 1 degree is too slow.

Has anyone got any ideas on how I could do this idea well?


http://i33.tinypic.com/15i5fmp.png

Offline

 

#2 2009-06-01 14:42:22

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

Re: Enemy Ships

Do you want it to be like imeadiately pointing at the ship? If you do, you might want to have       





<when green flag clicked>
               <forever>
                <point towards( Player
               <end>

Offline

 

#3 2009-06-01 15:32:08

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Re: Enemy Ships

No I want it relistic, so the enemy ship rotates to the direction of the ship over time, not straight away.


http://i33.tinypic.com/15i5fmp.png

Offline

 

Board footer