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

#1 2012-12-27 11:39:08

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Help with direction

Some of you might remember me from a while ago...
So I have returned and have been starting to use Scratch again but I need help with one thing: I am making a game where there is a cannon in the middle that can rotate clockwise and counterclockwise and shoot little round dots. I'm not sure how to make the dots go out of the cannon at the direction the cannon is pointing and then keep going until it goes offscreen! I'm probably missing something simple, but please help.

Offline

 

#2 2012-12-27 12:32:47

Kileymeister_test
Scratcher
Registered: 2010-01-31
Posts: 100+

Re: Help with direction

In the Sensing category of blocks, you will find a round block that says
([x position] of [Sprite1]) or something similar.  You can change the [x position] piece to [direction] and do something like this:

http://i45.tinypic.com/2cggfv8.gif

Last edited by Kileymeister_test (2012-12-27 12:33:27)


Kileymeister's test account.  I upload engines and demos and stuff for public use.
Currently Working on: Grapple Arms!

Offline

 

#3 2012-12-27 12:49:11

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Help with direction

Ok, thanks Kileymeister_test!

Offline

 

#4 2012-12-27 12:56:12

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Help with direction

The script that Kileymeister_test gave you is a base for what you'll need, though if you want to look, awhile ago I happened to make a Machine Gun Engine that could be changed to become a canon.

I hope that this helps! Also, welcome back to Scratch!

Last edited by ErnieParke (2012-12-27 12:56:36)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer