1.0.1 • Published 7 years ago

playcanvas-timeout v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Introduction

A setTimeout equivalent that operates in PlayCanvas game time, that might be slowed or paused.

Installation

npm install --save playcanvas-timeout

Usage

import timeout form 'playcanvas-timeout'

...

timeout(function() {
    //Called after 1 second of GAME TIME
    ...
}, 1000); 
 

Requirements

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