I need help on this one. I'm trying to create a function that will stop the triangle and do some other stuff when any of the fire sprites hit it. when I hit the green flag none of the fires register. It does register every once in a while. I appreciate any help on this one. Thanks.
http://scratch.mit.edu/projects/trappstar/2929264
Here is the link to what I have so far.
Offline
Heres a suggestion:
lets call your player sprite "player"
make a bullet sprite
for the bullet sprite:
when flag clicked
broadcast "ready"
when i receive "ready"
hide
repeat until [mouse down]?
/go to "player"
/////////////////////////
show
point towards [mouse_pointer]
repeat until [touching [edge]]
/move 10 steps
////////////////////////////
broadcast [ready]
Offline
VinMakesGames wrote:
Heres a suggestion:
lets call your player sprite "player"
make a bullet sprite
for the bullet sprite:when gf clicked broadcast [ready v] when i receive [ready v] hide repeat until (mouse down?) go to [player v] end show point towards [mouse_pointer v] repeat until (touching [edge v]?) move (10) steps end broadcast [ready v]
Put into scratchblocks.
Offline
I've created the bullet and it's movement. I guess my issue is more that I want the sprite that the bullet touches to react in some way. To test if my function is working I have repeat movement until bullet touching
but when my bullet is touching nothing happens most the time. Please download my game if you have some time to see when is holding me up. Thanks.
Offline
Put this script in the sprite:
when gf clicked forever if <touching [bullet v]?> react in some way wait until <not <touching [bullet v]?>> endfor reactions.
Last edited by 30-1 (2012-11-23 12:20:12)
Offline