Discuss Scratch

Titchymitch
Scratcher
23 posts

Using items in a list, and shooting an arrow from and to moving sprites?

Is it possible to click on an item in a list, and make the programme react to it?
Also, how do you make a sprite move (Like an arrow or something that's been thrown) from a moving target to the player?
Thanks to anyone who helps, and here's the project that I'm asking it for:
http://scratch.mit.edu/projects/15636548/
magpie5212
Scratcher
100+ posts

Using items in a list, and shooting an arrow from and to moving sprites?

I don't think the list itself can be clicked on. You could use a variable shown as a slider, or a collection of sprites to represent the items.

for the arrow…
when I receive [Fire! v]
point in direction (Target sprite v)
repeat until <touching [Target sprite v]?>

move () steps
end

forever
Simplify
end
Titchymitch
Scratcher
23 posts

Using items in a list, and shooting an arrow from and to moving sprites?

A slider?
I don't nessecarily want the arrow to touch the sprite, just go in the direction that it is, or will be maybe
Thanks though

Last edited by Titchymitch (Dec. 16, 2013 16:29:09)

magpie5212
Scratcher
100+ posts

Using items in a list, and shooting an arrow from and to moving sprites?

If you show a variable on the stage and then right-click on it you can change how the variable is shown. One version is a slider.

You can change the condition on the

repeat until <>

end

to be whatever ends the flight of the arrow.

forever
Simplify
end

Powered by DjangoBB