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

#1 2012-07-19 15:59:46

WoopAhhh
New Scratcher
Registered: 2012-07-19
Posts: 19

Asking a new question in a shorter way (Making a game for my nephew)

Here is my game so far. http://scratch.mit.edu/projects/WoopAhhh/2684686
(Note that it doesn't start till 15 seconds, because sound will be added for the first 15 seconds.) Please view the game to see what I have done so far.

What I need help with:
If you look at the game, you see there is a picture of my nephew. I want it to be like he is the player in the game, so I want his character to shoot something at the correct letter when the spacebar is pressed. Kind of like a shooting game. Left and right arrow keys will move his character, as you can see in the game so far. Thanks!




(For more info on this game:  When the mini game starts, there is a 15-second pause, in which I plan to add a voice clip of a family member explaining what to do. The voice will also spell a word. That word will then appear on the box below for 5 seconds so he can see the letters in order. Once that is finished, letters will begin flashing on the train, and he has to hit the correct letters in order to spell the appropriate word. He will get points for each correct word he spells.)

Offline

 

#2 2012-07-19 16:09:58

maxdoss
Scratcher
Registered: 2010-07-27
Posts: 1000+

Re: Asking a new question in a shorter way (Making a game for my nephew)

Sooo you want him to move to the left and right?


It's my birthday. Deal with it.

Offline

 

#3 2012-07-19 16:20:54

WoopAhhh
New Scratcher
Registered: 2012-07-19
Posts: 19

Re: Asking a new question in a shorter way (Making a game for my nephew)

maxdoss wrote:

Sooo you want him to move to the left and right?

Yup! But I already have that part down. I scripted him to move left and right via arrow keys.

Offline

 

#4 2012-07-19 16:26:31

maxdoss
Scratcher
Registered: 2010-07-27
Posts: 1000+

Re: Asking a new question in a shorter way (Making a game for my nephew)

So the shooting part?


It's my birthday. Deal with it.

Offline

 

#5 2012-07-19 16:28:38

WoopAhhh
New Scratcher
Registered: 2012-07-19
Posts: 19

Re: Asking a new question in a shorter way (Making a game for my nephew)

maxdoss wrote:

So the shooting part?

Basically. I want it to shoot when spacebar is pressed.
I also want there to be a specific sound when the correct letter is hit with the ball. When the correct letter is hit, I want it to appear in the box above.

Offline

 

#6 2012-07-19 16:43:36

maxdoss
Scratcher
Registered: 2010-07-27
Posts: 1000+

Re: Asking a new question in a shorter way (Making a game for my nephew)

I don't know about the sound part, but for the shooting you could have the bullet/laser sprite do this:

when gf clicked
forever if (shot) = no
goto (your nephew's sprite)
else
repeat (100)
move (4 steps)
I know im missing something, but that's basicly how you fire


It's my birthday. Deal with it.

Offline

 

#7 2012-07-19 17:19:41

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Asking a new question in a shorter way (Making a game for my nephew)

Hi WoopAhhh!

The game you're trying to make is pretty complicated, and there's no simple answer to the shooting question you have. Checking which letter has been shot and if it's in the right order will take a bit of setup and organization in more than one sprite, and I'm tempted to add that in for you myself and upload it.

Is that the kind of help you're looking for? Or is this something you want to figure out on your own with guidance on the forums like you're getting now?

Offline

 

#8 2012-07-19 19:02:17

WoopAhhh
New Scratcher
Registered: 2012-07-19
Posts: 19

Re: Asking a new question in a shorter way (Making a game for my nephew)

silvershine wrote:

Hi WoopAhhh!

The game you're trying to make is pretty complicated, and there's no simple answer to the shooting question you have. Checking which letter has been shot and if it's in the right order will take a bit of setup and organization in more than one sprite, and I'm tempted to add that in for you myself and upload it.

Is that the kind of help you're looking for? Or is this something you want to figure out on your own with guidance on the forums like you're getting now?

No, that'd help a lot! I can learn from your changes. Thanks!

Offline

 

#9 2012-07-19 22:57:00

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Asking a new question in a shorter way (Making a game for my nephew)

WoopAhhh wrote:

No, that'd help a lot! I can learn from your changes. Thanks!

Ok, cool!

I uploaded an example that I slapped together in a few minutes to prove that this will work. You can see it here on my test account. Feel free to download it and take a look! Most of the scripts that I added are in the sprite that follows the mouse. Basically, a variable keeps track of what letter should be hit next, and if the player shoots sprite with the costume that matches up with the required next letter, then the letter shows up on the top of the screen.

The problem with what I uploaded is that it would be extremely difficult and time consuming to add more words to spell, but I have an idea for a system that would be much more efficient. I'll try to work on that and then upload it with a lengthy explanation of how it works, but I'm a bit busy with summer activities, so that could be a bit delayed. I'll get started and see how it goes.  smile

Offline

 

#10 2012-08-06 22:08:06

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Asking a new question in a shorter way (Making a game for my nephew)

Almost done! Just checking in so you know that I haven't given up on this.  smile

http://scratch.mit.edu/projects/silvershineTEST/2685636

Offline

 

Board footer