When I view some advanced scratchers project's, they have if blocks with the same boolean statement in them. AgentRoop did this:
if <touching color [#000000]?> change y by ([abs v] of (xvel)) if <touching color [#000000]?> change y by (([abs v] of (xvel)) * (-1)) end endWhat does having multiple if blocks do? Wouldn't they cancel each other out?
Offline
Basically its in the proper order to cancel itself.
So if it is touching black on the FIRST if block and then it moves, it might not be touching black any more.
Offline