O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Over viewing task return options

So far, all of our tasks have used the same return statement, return task.cont. This isn't our only option, though. In reality, we have three options to choose from:

  • task.cont is our first option. Using this return value tells the task to execute again next frame. This option is intended for tasks that continue without interruption.
  • task.again is our second option. This option is meant for use with doMethodLater. If we use this return value, the task will execute again after the delay that's provided to doMethodLater. This means that if we have a one second delay in doMethodLater and we use return task.again, the task will execute once every second.
  • task.done is the last return value. This tells the task to remove ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required