You can use conditional statements (if-elseif-else) and adjust the velocity accordingly for the different cases. Here's an example code:
main.m505 chars16 lines
You can adjust the velocity values and the conditions based on your specific requirements.
gistlibby LogSnag