ask movers [foreach sort-on [group] movers
[the-mover -> ask the-mover [move-to one-of houses]
set color blue]
;one mover moves to one house one at a time and changes to the color blue
if time:is-after? sim-time sim-end-time
[stop]
update-time-variables
tick
end
Thanks, I look forward to your feedback.
Best,
Beruchya
I have to try it but i think you can remove the first "ask movers [" as you already are asking the movers to move.Wade
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/netlogo-users/2a0d0d0d-29b7-4b54-ac82-d0ba9ebe2fb5n%40googlegroups.com.