Thumbnail

Movement Script

+ How To Add This Control To Your Project (Click to Expand)
  1. Load the most recent release of ARC.
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Control from the button ribbon bar in ARC.
  4. Choose the Scripting category tab.
  5. Press the Movement Script icon to add the control to your project.
This skill gives you the ability to use movement actions to control additional scripts.

For example, all "Movements" are global. So if you use a Movement Panel, of any kind, this skill will execute the script for the movement direction that was activated. Such as, if you have a Modified Servo Movement Panel and you press FORWARD, the respective Forward Script in the settings of this skill will execute.

Main Window



1. Pause Checkbox
When checked the movement scripts will be paused and won't execute when movement commands are activated.

2. Movement Command Display
Displays the movement command that was activated.

3. Movement Panel
When a movement panel is activated by scripts or by directions being pressed it will cause the scripts set up in the Movement script skill to be executed according to the direction (or stop) command it receives.

Settings



1. Script Buttons
Click on each of these script buttons to enter a script that corresponds to each direction and stop.

How to use Movement Script


1) Add the Movement Script skill to your ARC project (Project -> Add Skill -> Scripting -> Movement Script).

2) Add a Movement Panel skill to your ARC project (Project -> Add Skill -> Movment Panels).

3) In the Movement Script settings enter in the scripts you'd like to run for each direction and stop.

4) Press or run a script that activates the Movement panel. Then watch the command show up in the Movement Command Display and execute the corresponding script.