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

#1 2012-07-19 13:59:14

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

I am creating a game for my nephew, and really need help!

I am creating a spelling game for my nephew who will be starting school this year. I am making it personal because I believe he will learn better this way.
I learned about Scratch only a few days ago, so I am therefore not very good with scripting yet. I have only figured out a few very basic things, which you can see with the progress of my game so far.

What I plan to do with this game:
I plan to make a menu screen where he can choose different spelling games to play. The games will have pictures of he and family members, as well as their voices to help explain how to play each game and teach lessons. I have started creating one mini game (which you can see here http://scratch.mit.edu/projects/WoopAhhh/2684686). When the mini game starts, there is a 10-second pause, in which I plan to add an automatic 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 click the correct letters in order to spell the appropriate word. He will get points for each correct word he spells.

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. Kind of like a shooting game. I also want his character to follow the mouse, but stay on the same position of the y-axis. So basically, I want him to move only left and right following the mouse. Please help!

Offline

 

#2 2012-07-19 14:04:58

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

Re: I am creating a game for my nephew, and really need help!

EDIT -- PLEASE READ:
I have another idea. Maybe instead of using the mouse to move left and right, it would be easier to just use the left and right arrow keys to move (if you go to the game, you will see that I have already added that feature anyway).
And when the spacebar is presses, it should shoot "bullets", which have to hit the correct  letter to spell the word.
I like this idea better, so any help with this?

Offline

 

#3 2012-07-19 14:09:05

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I am creating a game for my nephew, and really need help!

This is complicated.  tl;dr


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#4 2012-07-19 14:34:40

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

Re: I am creating a game for my nephew, and really need help!

Firedrake969 wrote:

This is complicated.  tl;dr

Then read the new comment at the bottom. It's shorter.

Offline

 

#5 2012-07-19 14:35:28

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I am creating a game for my nephew, and really need help!

First, give me one word that your nephew should spell--we'll start with a short one.  And for the scripts, dont use

when [arrow v] key pressed
, use
if <key [arrow v] pressed?>[/scratchblocks.

Last edited by Firedrake969 (2012-07-19 14:37:05)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#6 2012-07-19 14:37:40

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

Re: I am creating a game for my nephew, and really need help!

Firedrake969 wrote:

First, give me one word that your nephew should spell--we'll start with a short one.

If you looked at my game, you will see that word pop up in the box after 10 seconds. The word I used was cat.

Offline

 

#7 2012-07-19 14:38:17

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: I am creating a game for my nephew, and really need help!

Here's what you could do for the character:
First, make sure the display mode is set to side to side (this is found by the small display of the sprite above the scripting area and looks like < - >)

Sorry, the script won't show up correctly.

Last edited by AtomicBawm3 (2012-07-19 14:40:23)


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#8 2012-07-19 14:39:03

princess12leia
Scratcher
Registered: 2011-07-15
Posts: 21

Re: I am creating a game for my nephew, and really need help!

I would be glad to hellp!  smile

Offline

 

#9 2012-07-19 14:40:45

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

Re: I am creating a game for my nephew, and really need help!

Firedrake969 wrote:

First, give me one word that your nephew should spell--we'll start with a short one.  And for the scripts, dont use

when [arrow v] key pressed
, use
if <key [arrow v] pressed?>[/scratchblocks.[/quote]

Please do view my game before giving advice to see what I have already done (if you do, remember that the game doesn't start ill after 10 seconds)

Offline

 

#10 2012-07-19 14:44:43

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I am creating a game for my nephew, and really need help!

AtomicBawm3 wrote:

Here's what you could do for the character:
First, make sure the display mode is set to side to side (this is found by the small display of the sprite above the scripting area and looks like < - >)
Then, try this script:

When gf clicked
forever
point towards [mouse-pointer v]
set y to (-100) //or whatever position you need
if < ( [abs v] of ( (mouse x) - (x position) ) ) < (5)>
  change x by ( (mouse x) - (x position) )
else
  change x by (((5)*([abs v] of ((mouse x)-(x position))))/((mouse x) - (x position)))
end
See if that's what you'd like.

Fixed.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#11 2012-07-19 14:45:24

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

Re: I am creating a game for my nephew, and really need help!

princess12leia wrote:

I would be glad to hellp!  smile

Thanks you! You can see my game her to see what I've already done (game doesn't start till after 10 seconds)
http://scratch.mit.edu/projects/WoopAhhh/2684686

Offline

 

#12 2012-07-19 14:45:43

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: I am creating a game for my nephew, and really need help!

WoopAhhh wrote:

Firedrake969 wrote:

First, give me one word that your nephew should spell--we'll start with a short one.  And for the scripts, dont use

when [arrow v] key pressed
, use
if <key [arrow v] pressed?>

Please do view my game before giving advice to see what I have already done (if you do, remember that the game doesn't start ill after 10 seconds)

But I did.  I can tell that the movement is glitchy.  Use the script I gave.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#13 2012-07-19 14:46:17

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: I am creating a game for my nephew, and really need help!

You can use the picture as a sort of cannon. Then a "bullet" sprite can shoot out from there by adjusting its position using

go to x: (([x position v] of [picture v]) + (30)) y: ([y position v] of [picture v])
and using change y position blocks to move upwards  smile

Last edited by LS97 (2012-07-19 14:46:36)

Offline

 

#14 2012-07-22 00:56:33

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: I am creating a game for my nephew, and really need help!

you should take the scratch lessons if you haven't already. But if you don't want to take the time this should help you with the shooting scripts try this video http://video.answers.com/how-to-create-someone-firing-a-gun-scratch-165849498


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

Board footer