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

#1 2008-05-22 08:18:05

Freestylin_Monkey
Scratcher
Registered: 2008-03-24
Posts: 100+

I heed help

how do you make scratch blocks so that if you shoot an arrow straight?, the longer you hold the space button, the farther it goes even though it moves downward?, but if you hold it too long your shot messes up?

-but the mouse is not shooting the arrow into the screen, it is a sprite character shooting it left or right.

_____________________________

highlight me and you will see my true identity!
lol

Darth Maul!!! ha ha ha ha haaaa!!!

Last edited by Freestylin_Monkey (2008-05-22 10:15:28)


I am Lord of Lords, I am King of Kings, I AM MASTERS OF ALL MASTERS!!!
-But I am a servant of my mother

Offline

 

#2 2008-05-23 15:12:23

Cyclone103
Scratcher
Registered: 2008-03-20
Posts: 500+

Re: I heed help

Just make a simple timer, and if it exceeds the limit make it screw up. "set power to timer, if timer>____ broadcast messed up" "forever if not touching player sprite change y by -3" that should do it!


All your base are belong to us

Offline

 

#3 2008-05-25 18:06:27

james_Mazz1
Scratcher
Registered: 2008-05-25
Posts: 1

Re: I heed help

Freestylin_Monkey wrote:

how do you make scratch blocks so that if you shoot an arrow straight?, the longer you hold the space button, the farther it goes even though it moves downward?, but if you hold it too long your shot messes up?

-but the mouse is not shooting the arrow into the screen, it is a sprite character shooting it left or right.

_____________________________

highlight me and you will see my true identity!
lol

Darth Maul!!! ha ha ha ha haaaa!!!

Last edited by james_Mazz1 (2008-05-25 18:06:51)

Offline

 

#4 2008-05-26 00:30:08

ashwinsm
Scratcher
Registered: 2008-03-13
Posts: 46

Re: I heed help

You could try the method cyclone has posted or Try this :
create a variable called steps (let it be shown)
When Green flag clicked
Forever if :Key press  space
Move 'steps' Steps
change steps by -1
Hide
forever if : steps = 0
move 0 steps
Forever if : steps = 100 or >100
brodcast mess up

Last edited by ashwinsm (2008-05-26 00:30:58)


Maths has the basics for everything. hmm

Offline

 

#5 2008-05-29 15:48:57

boinoinoi
Scratcher
Registered: 2007-06-05
Posts: 500+

Re: I heed help

I don't know how to do this, but the "repeat until" block should come in handy.


http://i30.tinypic.com/335fpxx.jpg
"Boinoinoi is the only person on the forums that I expect to be wearing a monocle all the time behind that screen, so I'm sure being as classy as he is, he knows what he's doing"        http://myfastcounter.com/count.php?c_style=88&id=1284259111http://myfastcounter.com/count.php?c_style=88&id=1286068127

Offline

 

Board footer