MoveEvent¶
Move event for a Shape or SpriteActor.
Constructor
MoveEvent(obj, dx, dy[, speed, nextAction]) |
Move event for a Shape or SpriteActor. |
Details
-
class
MoveEvent(obj, dx, dy, speed=1, nextAction=None)[source]¶ Bases:
events.moveToEvent.MoveToEventConstructs a MoveEvent.
Parameters: - ojb – The object to move.
- dx – The distance to move in the horizontal direction.
- dy – The distance to move in the vertical direction.
- speed – The speed with which to move.
- nextAction – A function called after the move is completed.