PhantomQuest Posted May 23, 2020 Share Posted May 23, 2020 (edited) Is it possible to reference the object I just created inside the arrow function to set the tint? I've tried using this but that just references the Scene. Edited May 23, 2020 by PhantomQuest Link to comment Share on other sites More sharing options...
Darko Posted May 23, 2020 Share Posted May 23, 2020 (edited) Hi, what you can do is use the variable as context without ES6 arrows, something like... var myText = this.add.text( ... ).on("pointerover", function() { this.setTint() }, myText) Edited May 23, 2020 by Darko msanatan 1 Link to comment Share on other sites More sharing options...
Recommended Posts