{"id":15164290,"url":"https://github.com/phaserjs/editor-scripts-timer","last_synced_at":"2026-01-04T20:01:46.670Z","repository":{"id":232538064,"uuid":"783945835","full_name":"phaserjs/editor-scripts-timer","owner":"phaserjs","description":"Phaser Editor scripts for making time-based actions.","archived":false,"fork":false,"pushed_at":"2024-09-26T15:21:58.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-01-29T11:11:35.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phaserjs.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.MD","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-08T22:15:28.000Z","updated_at":"2024-09-26T15:20:42.000Z","dependencies_parsed_at":"2024-04-10T07:18:56.346Z","dependency_job_id":null,"html_url":"https://github.com/phaserjs/editor-scripts-timer","commit_stats":null,"previous_names":["phaserjs/editor-scripts-timer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaserjs%2Feditor-scripts-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaserjs%2Feditor-scripts-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaserjs%2Feditor-scripts-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaserjs%2Feditor-scripts-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phaserjs","download_url":"https://codeload.github.com/phaserjs/editor-scripts-timer/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237092872,"owners_count":19254295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T03:03:50.377Z","updated_at":"2025-10-19T08:32:05.942Z","avatar_url":"https://github.com/phaserjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phaser Editor v4 Timer Scripts (library)\n\n**Warning: This project is deprecated. It is now part of the [@phaserjs/editor-scripts-quick](https://www.npmjs.com/package/@phaserjs/editor-scripts-quick) library.**\n\nThis project contains Phaser Editor scripts for using a timer.\n\nThese script nodes are very basic and may fit on any Phaser Editor project.\n\nThe scripts are coded in TypeScript with ES modules.\n\n## Installing (NPM)\n\nThis package depends on the following packages:\n\n- `@phaserjs/editor-scripts-core`\n- `@phaserjs/editor-scripts-random`\n\nTo install this in your game you have to install dependencies too:\n\n```\nnpm install @phaserjs/editor-scripts-core\nnpm install @phaserjs/editor-scripts-random\nnpm install @phaserjs/editor-scripts-timer\n```\n\nAlso, you should add this package to the `phasereditor2d.config.json` file in your project, in the `scripts` section:\n\n```json\n{\n    \"scripts\": [\n        \"@phaserjs/editor-scripts-core\",\n        \"@phaserjs/editor-scripts-random\",\n        \"@phaserjs/editor-scripts-timer\"\n    ]\n}\n```\n\n## Installing (vanilla JavaScript)\n\n* Get the files in the [browser](./browser/) folder and copy them into your JavaScript project. It includes Phaser Editor files, JavaScript files, and TypeScript type definitions.\n* Add a `script` tag to the `index.html` file to load the `lib/phaserjs_editor_scripts_timer.js` file.\n\n## Summary\n\nThis library provides a few actions for implementing timers in your game. \n\nAs a reminder, an action is executed by an event script or another action.\n\nThe actions:\n\n* **Delay Action** - Delays, then executes the children's scripts.\n* **Delay Random Action** - Delays a random time, then executes the children's\n* **Emit Tick Action** - Emits a tick at every given delay.\n* **Emit Random Tick Action** - Emits a tick always at a random delay.\n\n## Delay Action\n\n*Class: DelayActionScript*\n\nThis action delays a given **Delay** time and then executes the children's scripts.\n\nThis action allows the **Target Action Config** user component.\n\n## Delay Random Action\n\n*Class: DelayRandomActionScript*\n\nThis action delays a random time and then executes the children's scripts.\n\nThe delay is a random value generated by any of the random user component configurations in the [@phaserjs/editor-scripts-random](https://github.com/PhaserEditor2D/phasereditor2d-scripts-random) library.\n\n\nThis action allows the **Target Action Config** user component.\n\n## Emit Tick Action Script\n\n*Class: EmitTickActionScript*\n\nThis action emits a tick at a fixed rate, within the given **Delay**. At every tick, it executes the children's scripts.\n\nThis action allows the **Target Action Config** user component.\n\n## Emit Random Tick Action\n\n*Class: EmitRandomTickActionScript*\n\nThis action emits a tick at a random rate. At every tick, it executes the children's scripts.\n\nThe delay is a random value generated by any of the random user component configurations in the [@phaserjs/editor-scripts-random](https://github.com/PhaserEditor2D/phasereditor2d-scripts-random) library.\n\nThis action allows the **Target Action Config** user component.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaserjs%2Feditor-scripts-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphaserjs%2Feditor-scripts-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaserjs%2Feditor-scripts-timer/lists"}