Skip to content

Simple promise for a callback after a delay in PlayCanvas, delay is measured in game time which may be stretched or paused.

Notifications You must be signed in to change notification settings

whydoidoit/delay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Creates a promise for a game time delay in PlayCanvas

Installation

npm install --save playcanvas-delay

Usage

import delay from 'playcanvas-delay'

...

await delay(0.5 * 1000);

delay(6000).then(function() { ... }); 

Requirements

Requires PlayCanvas Engine to be running on the page. Uses ES6/Babel/PlayCanvas template.

About

Simple promise for a callback after a delay in PlayCanvas, delay is measured in game time which may be stretched or paused.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published