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

#1 2009-03-07 16:11:44

ilhazzard
Scratcher
Registered: 2009-03-07
Posts: 4

i need help!

Ok, so i have made my own game on Scatch, as a school project.
i've made a start menu, and then it goes into a short story, this game is based on mario.

basicly, Bowser appears (bad guy) and fires a fire ball. your aim is to get mario to jump into bowser, and you get 1 point, when you get 5 points you complete the game.

BUT...

I've animated Mario, jumping and everything i just don't know how to make the ball go to the other side, then once it hits the other side... go back to Bowser so he fires another, so he's costantly fireing fire balls. I'm also not sure how to make it so once he hits into bowser, he gains a point, then goes back to the other side of the screen. (if you know what i mean?)
Like maybe if you posted the scripts?

Thanks.

Offline

 

#2 2009-03-07 17:54:01

room209
Scratcher
Registered: 2007-03-17
Posts: 94

Re: i need help!

This sounds like a fun project and you have great questions.  When you want to have several actions like this, one way to learn how to program them is to find projects with similar actions.  You can download them and see what the scripts are like.  Searching for tutorials also works.  Check out these two with advice on shooting:

http://scratch.mit.edu/projects/Helping_You/306445
http://scratch.mit.edu/projects/Tutorial_Maker/190024

Here is a simple way to keep score. Can the "if touching" and variable be modified to fit your needs?

http://scratch.mit.edu/projects/room209/444813

Offline

 

#3 2009-03-09 14:30:55

ilhazzard
Scratcher
Registered: 2009-03-07
Posts: 4

Re: i need help!

Thank you  smile

Offline

 

#4 2009-03-09 14:56:42

ilhazzard
Scratcher
Registered: 2009-03-07
Posts: 4

Re: i need help!

<when I receive[ HAHAHA!
<point in direction( Mario
<show>
<repeat until><touching[ edge
<move(-10)steps>+
<hide>
<go to[ bowser

Offline

 

#5 2009-03-09 15:17:19

ilhazzard
Scratcher
Registered: 2009-03-07
Posts: 4

Re: i need help!

That's my script.
I 'triggered it' if you like, so that he would say HAHAHA! like every second or so, each time fireing a fireball.

I didn't make them press the space bar because it was the enemy.
I also put -10 because the enemy was on the left side.
IF you want, i will upload the project - that's after i hand it in as homework  smile

Offline

 

#6 2009-03-09 15:41:26

room209
Scratcher
Registered: 2007-03-17
Posts: 94

Re: i need help!

Ye, share it to your user file.  It would be fun to see how your project turned out. Does everyone in class have to make one?  What sort of choices did you get to make about the assignment?

Offline

 

#7 2009-03-14 00:07:57

Maki-Tak
Scratcher
Registered: 2008-03-10
Posts: 100+

Re: i need help!

You'll probably need a repeat block <repeat until>


http://i.cubeupload.com/zZE0XJ.png

Offline

 

#8 2009-03-14 10:05:28

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: i need help!

Here are bowsers scripts:


<when green flag clicked>
<repeat until><( <{points  }> <>> 5 )>
<wait(<pick random( 2 )to(  5 )secsc>
<say[ HAHAHAHAH! ]for( 2 )secs>
<end>
<end>

Here are the fireballs scripts:

<when green flag clicked>
<repeat until><( <{points  }> <>> 5 )>
<show>
<point towards( mario
<repeat until><touching[ edge
<move( 5 )steps>
<end>
<end>
<hide>

here are mario's scripts

<when green flag clicked>
<repeat until><( <{points  }> <>> 5 )>
<if><touching[ bowser
<change{ points }by( 1
<wait until><<  <not>  >><touching[ bowser
<end>


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#9 2009-03-15 05:48:58

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: i need help!

I moved this to "All About Scratch".


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

Board footer