# Antisuspend Plugin

The **Antisuspend Plugin for Construct 3** is a powerful tool designed to prevent your game from being automatically suspended when the window becomes inactive. This plugin ensures that your game continues to run smoothly, even when the player switches tabs or minimizes the window, making it an essential tool for idle games and other types of games that require continuous background activity.

{% hint style="info" %}
The plugin has been modified to <mark style="color:blue;">**work in the SDK v2**</mark> without using undocumented features. It's new design is fully integrated with Construct available features to ensure its long term compatibility.
{% endhint %}

{% hint style="warning" %}
To ensure the proper functioning of the Antisuspend Plugin, <mark style="color:orange;">**Worker Mode must be enabled**</mark> for your Construct 3 project. This mode allows the game to run in a background thread, ensuring that the game continues to operate even when the main window loses focus or is inactive. Without Worker Mode, the plugin will not work as intended, and automatic suspension may still occur when the window goes into the background.
{% endhint %}

#### **Key Features**

* **Prevent Automatic Suspension**: By default, browsers suspend background pages to save resources, causing your game to pause. The Antisuspend Plugin allows you to disable this automatic behavior, giving you full control over when the game suspends and resumes.
* **Manual Control**: Once disabled, you can manually control game suspension using the `setSuspended()` function, allowing you to manage when the game should pause or continue based on your specific game requirements.
* **Perfect for Idle Games**: Idle games often require the game to keep running in the background to simulate ongoing progress. With the Antisuspend Plugin, your idle game can continue to operate even when the player is not actively interacting with it.
* **Customizable to Fit Your Needs**: Whether you’re working with idle games, background tasks, or games that need to track progress over time, the Antisuspend Plugin provides the flexibility to maintain constant game execution.

{% hint style="success" %}
To use this plugin, <mark style="color:green;">**just include it in your project**</mark> and it will automatically keep your game running.  No additional configuration required.
{% endhint %}

## <img src="/files/hfyZFfmhF7RDA1NtUgPW" alt="" data-size="line">Antisuspend Global Plugin

Prevents the runtime to be suspended when the window becomes inactive.&#x20;

<details>

<summary>Download</summary>

<https://store.pixelperfectstudio.mx/product/antisuspend>

</details>

## Properties

| **Property** | **Description**                         |
| ------------ | --------------------------------------- |
| `Enabled`    | Enable/Disable the antisuspend behavior |

## Actions

***

### `Set Enabled`

Enables/Disables the antisuspend plugin

| **Parameter** | **Description**                   |
| ------------- | --------------------------------- |
| `Enabled`     | Enable/Disable antisuspend plugin |

## Conditions

***

### `Is Enabled`

Returns true if the antisuspend plugin is enabled

### `Is Supported`

Returns true if the antisuspend plugin is able to run in the current browser

**(c) Pixel Perfect Studio 2025**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartui-docs.pixelperfectstudio.mx/miscellaneous-addons/antisuspend-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
