I keep getting a red outline of these blocks when I code this:
when gf clicked if <<color red is touching black> or <color orange is touching black>> change x by <(xvel)*[-1] if <not<<color red is touching black> or <color orange is touching black>>> change x by <round<(xvel)/<[abs v] of (xvel) if <not<<color red is touching black> or <color orange is touching black>>> change x by <round<(xvel)/<[abs v] of (xvel) if <not<<color red is touching black> or <color orange is touching black>>> change x by <round<(xvel)/<[abs v] of (xvel) if <not<<color red is touching black> or <color orange is touching black>>> change x by <round<(xvel)/<[abs v] of (xvel) if <not<<color red is touching black> or <color orange is touching black>>> change x by <round<(xvel)/<[abs v] of (xvel) if <not<<color red is touching black> or <color orange is touching black>>> change x by <round<(xvel)/<[abs v] of (xvel) end end end end end end change x by <<round<(xvel)/[abs v] of (xvel)>>>*[-1] set xvel to [0] end change x by (xvel)
Offline
baseball1859 wrote:
I keep getting a red outline of these blocks when I code this:
when gf clicked if <<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>> change x by <(xvel)*[-1]> if <not<<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>>> change x by <round<(xvel)/<[abs v] of (xvel)>>> if <not<<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>>> change x by <round<(xvel)/<[abs v] of (xvel)>>> if <not<<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>>> change x by <round<(xvel)/<[abs v] of (xvel)>>> if <not<<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>>> change x by <round<(xvel)/<[abs v] of (xvel)>>> if <not<<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>>> change x by <round<(xvel)/<[abs v] of (xvel)>>> if <not<<color [#ff0000] is touching [#000000]?> or <color [#ffa800] is touching [#000000]?>>> change x by <round<(xvel)/<[abs v] of (xvel)>>> end end end end end end change x by (<round<(xvel)/([abs v] of (xvel))>>*[-1]) set [xvel v] to [0] end change x by (xvel)
Fixed.
Anyway, when you say that, do you mean that the scratchblocks are turning red in the Scratch program or on the forums?
Last edited by ErnieParke (2012-12-08 15:22:57)
Offline