I am trying to make a game based off of this game http://www.maxgames.com/play/music-catch-2.html I am trying to make the notes do the movement of the notes in the game. If you have NOT played the game just hit play. If you have played this game before set it to these settings.
Music-Any you choose
Shapes-Any you choose (I am making circles for the shapes)
Pattern-In & Out
Motion-Right
Randomize-Off
Here is the script
<when green flag clicked>
<forever>
<if><touching[ Note Collector
<go to x 165 )y <pick random( 162 )to( -162
<hide>
<wait( 1 )secsc>
<else>
<show>
<glide( 0.3 )secs to x 100 )y <y position>
<glide( 0.4 )secs to x 65 )y <y position>
<glide( 0.5 )secs to x 45 )y <y position>
<glide( 0.6 )secs to x 15 )y <y position>
<glide( 0.5 )secs to x -30 )y <y position>
<glide( 0.6 )secs to x -45 )y <y position>
<glide( 0.8 )secs to x -100 )y <y position>
<glide( 1 )secs to x -160 )y <y position>
<glide( 1 )secs to x -100 )y <y position>
<glide( 0.8 )secs to x -65 )y <y position>
<glide( 0.6 )secs to x -45 )y <y position>
<glide( 0.5 )secs to x -15 )y <y position>
<glide( 0.6 )secs to x 30 )y <y position>
<glide( 0.5 )secs to x 45 )y <y position>
<glide( 0.4 )secs to x 100 )y <y position>
<glide( 0.3 )secs to x 160 )y <y position>
<end>
Now what I'm not getting is WHY WON'T IT WORK!!! The only thing I don't want is for the screen or notes to rotate. Any help out there?
Last edited by GodofGuns (2009-04-04 19:13:10)
Offline
If you don't want a sprite to visually rotate, check the little square icon next to the sprite's name text field. The three boxes are:-
• Spin
• Flip
• Don't spin or flip
Offline
djmoomoo wrote:
If you don't want a sprite to visually rotate, check the little square icon next to the sprite's name text field. The three boxes are:-
• Spin
• Flip
• Don't spin or flip
That's not what I was asking for.
Offline
Hi GodofGuns -
That looks like a great game to redo in Scratch! I was wondering if you could Share what you have so far and tell us what part isn't working the way you want it. That would save us a lot of time.
Looking at your blocks though, I think your problem is with the Glide block. When your script starts running a Glide block, it's not going to be checking to see if it is touching the collector sprite. Maybe you should try setting up two loops, one that controls "Normal" motion of the notes and one that checks to see if the collector has been touched and handles that case. The challenge is going to be how to stop the "Normal" motion when the collector has been touched.
Offline
Paddle2See wrote:
Hi GodofGuns -
That looks like a great game to redo in Scratch! I was wondering if you could Share what you have so far and tell us what part isn't working the way you want it. That would save us a lot of time.
Looking at your blocks though, I think your problem is with the Glide block. When your script starts running a Glide block, it's not going to be checking to see if it is touching the collector sprite. Maybe you should try setting up two loops, one that controls "Normal" motion of the notes and one that checks to see if the collector has been touched and handles that case. The challenge is going to be how to stop the "Normal" motion when the collector has been touched.
Thanks and I am not sure what you are trying to tell me. Could you give me an example or something? Also another game I am making is a game based from a console game called Left 4 Dead. Have you heard of it? Anyway I am having trouble with the zombie A.I I am trying to make the zombie go towards the player. It works at first but when you go past the zombie it stops. Then when you go back in front of it. It goes away from you pointing backwards. Here is the script. (Sorry for so many of these by the way). This isn't the entire script but I am sure the first part of it is not the problem. But I am suspicious of this script.
If X position <( <>> )> X position of Sprite 4 (shooter) and touching color black (ground)
<move( 4 )steps>
<else>
<point in direction( 90
<glide( 3 )secs to x x position of Sprite 4 )y -1
I think that the X position of Sprite 4 needs to be negative but I'm not sure how to do that. Can you help me out with that too? Sorry if this is a bit too much to ask for.
Offline
I've set up a demonstration of how to set up two loops - one for handling the motion and another for looking for collisions:
http://scratch.mit.edu/projects/Paddle2SeeFixIt/478561
As for your other game, to make the x position negative, just subtract it from Zero
[blocks]
(( 0 <-> X Position of Sprite 4 ))
[/blocks]
Offline
Paddle2See wrote:
I've set up a demonstration of how to set up two loops - one for handling the motion and another for looking for collisions:
http://scratch.mit.edu/projects/Paddle2SeeFixIt/478561
As for your other game, to make the x position negative, just subtract it from Zero
[blocks]
(( 0 <-> X Position of Sprite 4 ))
[/blocks]
The first thing is helpful although even with the -0 part it still didn't work.
Offline