View Single Post
  #2  
Old 04-14-2009, 01:31 PM
moooh moooh is offline
Member
 
Join Date: Dec 2008
Posts: 19
They are not running in a loop and the statement will indeed turn false when you move the sensor away, however by the looks of it you are running the moveFlowers function every frame, so once you have the sensor in a position where a condition will be true, the actions will keep adding up for every frame you spend in that position.
Even if you move away really quickly you will probably have hundreds of actions queued after eachother, which is why it feels like they are running in a loop.

If you just want to replace the previous action with the new one you can try and clear the actions of each node before adding the new, using the <node3d>.clearActions call.
Reply With Quote