Discuss Scratch

Meydell
New to Scratch
10 posts

Need help with script!!

I'm currently making a rhythm game for my school project.
I want to have a three lane background, where I drop some balls according to the rhythm of the music.
The player is going to use either right, left or down arrow key whenever the balls land on a set place of t stage.
When the player manage to press the key on time, he or she gain 10 points, but when the player couldn't, the score stays the same but the life bar goes down by 10. (The life bar is originally 100)

I really need help with the script for this game.

Help!!
Meydell
New to Scratch
10 posts

Need help with script!!

What I meant by rhythm game is a rhythm tapping game, in case my explanation was confusing.

Last edited by Meydell (Oct. 19, 2013 08:49:59)

scubajerry
Scratcher
1000+ posts

Need help with script!!

What kind of help do you need? One thought is to synchronize drops with the system timer in the sensing tab.
Meydell
New to Scratch
10 posts

Need help with script!!

Sure! I can use that! But can you tell how to do it?
scubajerry
Scratcher
1000+ posts

Need help with script!!

Meydell wrote:

Sure! I can use that! But can you tell how to do it?
when gf clicked
reset timer
wait until <(timer) = (3)>
drop ball
wait until <(timer) = (4.5>
drop ball
wait until <(timer) = (5)>
drop ball
wait until <(timer) = (6.1)>
drop ball
wait until <(timer) = (7.7)>
drop ball
[scratchblocks]
Meydell
New to Scratch
10 posts

Need help with script!!

scubajerry wrote:

Meydell wrote:

Sure! I can use that! But can you tell how to do it?
when gf clicked
reset timer
wait until <(timer) = (3)>
drop ball
wait until <(timer) = (4.5>
drop ball
wait until <(timer) = (5)>
drop ball
wait until <(timer) = (6.1)>
drop ball
wait until <(timer) = (7.7)>
drop ball
[scratchblocks]

[/quote]


How do I make the "drop ball"??

Last edited by Meydell (Oct. 19, 2013 23:27:46)

Meydell
New to Scratch
10 posts

Need help with script!!

Meydell wrote:

scubajerry wrote:

Meydell wrote:

Sure! I can use that! But can you tell how to do it?
when gf clicked
reset timer
wait until <(timer) = (3)>
drop ball
wait until <(timer) = (4.5>
drop ball
wait until <(timer) = (5)>
drop ball
wait until <(timer) = (6.1)>
drop ball
wait until <(timer) = (7.7)>
drop ball
[scratchblocks]
Meydell
New to Scratch
10 posts

Need help with script!!

How do I make the “drop ball”??
scubajerry
Scratcher
1000+ posts

Need help with script!!

scubajerry wrote:

Meydell wrote:

Sure! I can use that! But can you tell how to do it?
//I would put this in the stage

when gf clicked
reset timer
wait until <(timer) = (3)>
Create clone of [ball v]
wait until <(timer) = (4.5>
Create clone of [ball v]
wait until <(timer) = (5)>
Create clone of [ball v]
wait until <(timer) = (6.1)>
Create clone of [ball v]
wait until <(timer) = (7.7)>
Create clone of [ball v]



// In the ball
when I start as a clone
go to X <pick random (-220) to (220)> Y (160)
show
repeat until <touching [edge v]
change y by (-5)
end
delete this clone
Meydell
New to Scratch
10 posts

Need help with script!!

Yep!! It worked!! Thank you very much!

But one more problem….
Since I need so many clones for one song, the game is getting very laggish and slow…
Is there any way to make it faster?
scubajerry
Scratcher
1000+ posts

Need help with script!!

Can you share a current copy?
Meydell
New to Scratch
10 posts

Need help with script!!

Okay never mind!!
When I was working on it yesterday, I think it was lavish because I was doing so much things on the computer at a time,,,,
I opened it today, and it was working fine!

Thank you so much for helping me!
I might ask you again when I have another problem or question though…

Powered by DjangoBB