Quantcast
Channel: 2D Latest Topics
Viewing all articles
Browse latest Browse all 623

Help to understand how the Pointer object can be instantiated in phaser3

$
0
0

Hi,

i'm new to phaser 3 and would have some clarifying answers on the Calss Pointer here:

in particular:

  • I want to create an Pointer instance using the following code:
    • var gun = new Pointer(manager,0);
      

       

I know that the "manager" argument refers to a InputManager object, but i don't understand how to create/configure it,

i tried this:

var manager = new InputManager(this, this);

but obtain the following error log:

ReferenceError: InputManager is not defined

Can someone help me on this problem?

 

Thanks!


Viewing all articles
Browse latest Browse all 623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>