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

#1 2010-05-21 21:28:11

Linerz
Scratcher
Registered: 2010-05-12
Posts: 15

Space shooter help!

I need some help with a space shooter, I have all the shooting and stuff working great, but the actual space ship is turned the wrong way when you start the game, so when you click the mouse to shoot it doesnt shoot right, and it handles funny. I can post the game if people need to see what I mean

Last edited by Linerz (2010-05-21 21:28:40)

Offline

 

#2 2010-05-21 21:35:20

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Space shooter help!

Linerz wrote:

I can post the game if people need to see what I mean

Could you? That would really help me understand.

Offline

 

#3 2010-05-21 21:51:12

Linerz
Scratcher
Registered: 2010-05-12
Posts: 15

Re: Space shooter help!

coolstuff wrote:

Linerz wrote:

I can post the game if people need to see what I mean

Could you? That would really help me understand.

The game is controlled by moving the mouse around, and the problem is when I put the mouse near the top of the screen I want the space ship to point up and it points up and to the left a bit and that is very annoying. Im sure its a simple fix, but I couldnt figure anything out

http://scratch.mit.edu/projects/Linerz/1066849

Last edited by Linerz (2010-05-21 21:51:27)

Offline

 

#4 2010-05-21 21:58:56

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Space shooter help!

Okay so here's what you have to do. First, in the paint editor, flip the sprite so that the tip of the rocket is facing right. Then, for the bullet..thing make the script like this:

When green flag clicked
forever
[] point in direction (direction of [rocket])
[] wait until <mouse down? >
and do the movement part here

Last edited by ScratchReallyROCKS (2010-05-21 21:59:09)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#5 2010-05-21 22:01:23

Linerz
Scratcher
Registered: 2010-05-12
Posts: 15

Re: Space shooter help!

ScratchReallyROCKS wrote:

Okay so here's what you have to do. First, in the paint editor, flip the sprite so that the tip of the rocket is facing right. Then, for the bullet..thing make the script like this:

When green flag clicked
forever
[] point in direction (direction of [rocket])
[] wait until <mouse down? >
and do the movement part here

Could you possibly write the script out and then upload it?

Offline

 

#6 2010-05-21 22:04:12

Linerz
Scratcher
Registered: 2010-05-12
Posts: 15

Re: Space shooter help!

Nevermind, I fixed it, thanks a lot!

Offline

 

Board footer