Libraries‎ > ‎Library‎ > ‎Movement‎ > ‎

Jump forward

BehaviourComposer: ignore everything before this.

Begin micro-behaviour

Begin description:
Jump forward in the direction of my heading.
End description

Jump forward

Begin NetLogo code:
substitute-text-area-for distance-moved 10go-forward distance-moved 
End NetLogo code

Variants

You can change the contents of the text area to another number or the value of a parameter(see Parameter). Using a negative value will jump backwards instead. You can make the agent jump forward a random amount by using random-number-between 2 5 in the text area. You can enhance this behaviour to occur repeatedly by clicking on the 'Enhance' menu item.

Related Micro-behaviours

Turn changes the heading that I move forward. There are many movement behaviours in the main library.

How this works

This uses go-forward, a Behaviour Composer NetLogo command.

History

Jump forward was first implemented by Ken Kahn on 28 July 2010.

BehaviourComposer: ignore everything after this.