I need help with something to stop moving when hitting the red color. In my scripts for my mutated bug that you hit with fire, it flaps it's wings (switching costumes between bug and bug1), and glides around. I want it to stop moving and stop flapping wings when it gets hit by the red color. Is it possible to do this?
Sorry, you have to click on the link, I can't use the [img] code yet.
http://i.imgur.com/tsotv.gif
Offline
Well, you're using the glide block. You can't stop in the middle of that unless you want to stop everything. If stopping everything is fine, use:
stop allBut otherwise, use a combination of other blocks to substitute and place them in this loop:
if <not <touching color [#FF0000]?>> your blocks here end
Last edited by Greenatic (2012-02-19 20:20:03)
Offline
Hmm... I think I can help!
when gf clicked forever if <touching color [#E01B25]?> move (0) steps else Your Script Here end endGlad I could help!
Offline
SilverDomination wrote:
Hmm... I think I can help!
when gf clicked forever if <touching color [#E01B25]?> move (0) steps else Your Script Here end endGlad I could help!
-SilverDomination
when gf clicked Repeat Until <touching color [#E01B25]?> Your Script Here end
Last edited by MoreGamesNow (2012-02-22 07:38:41)
Offline
[scratchblocks]
when gf clicked
forever if <touching color [#00FF57]>
stop all
end
Offline
You need to put a [/scratchblocks] tag at the end.PencilFactory wrote:
[scratchblocks] when gf clicked forever if <touching color [#00FF57]> stop all end
when gf clicked forever if <touching color [#00FF57]> stop all end
Offline
What's with all the "stop all" blocks? Sammidysam asked for the sprite to stop moving, not for the entire project to stop.
Offline
MoreGamesNow wrote:
What's with all the "stop all" blocks? Sammidysam asked for the sprite to stop moving, not for the entire project to stop.
That's the only way to stop a gliding sprite (to my knowledge).
Offline
Greenatic wrote:
MoreGamesNow wrote:
What's with all the "stop all" blocks? Sammidysam asked for the sprite to stop moving, not for the entire project to stop.
That's the only way to stop a gliding sprite (to my knowledge).
Sorry, I misinterpreted "gliding" as simply "moving", mot as moving with the "glide () secs to" block. My mistake.
Offline
MoreGamesNow wrote:
SilverDomination wrote:
Hmm... I think I can help!
when gf clicked forever if <touching color [#E01B25]?> move (0) steps else Your Script Here end endGlad I could help!
-SilverDominationwhen gf clicked Repeat Until <touching color [#E01B25]?> Your Script Here end
GOOD IDEA!!! IM GONNA USE THAT!!!
Offline