Jump to content

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


Zago
 Share

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...