tuxemon.event.actions.rumble module

final class tuxemon.event.actions.rumble.RumbleAction(duration, power)[source]

Bases: EventAction

Rumble available controllers with rumble support.

Script usage

rumble <duration>,<power>
Script parameters:
  • duration – Time in seconds to rumble for.

  • power – Percentage of power to rumble.

Parameters:
  • duration (float) –

  • power (int) –

duration: float
name: ClassVar[str] = 'rumble'
power: int
start()[source]

Called only once, when the action is started.

For all actions, you will need to override this method.

For actions that only need to run one frame you can simply put all the code here. If the action will need to run over several frames, you can init your action here, then override the update method.

Return type:

None