Closed kondr1 closed 3 years ago
Hi! I fixed it in c14566672e2a70fd5f827fa9c6c6da7b8b05f3bf :)
Please note that the current master
branch will soon be replaced by the new advancedBase
branch, so you may want to give it a try.
Hello, sorry in advance if I misunderstood but I replaced dn.heaps.Controller with dn.heaps.input.Controller but I get the following error and I'm not sure what type to define: Not enough type parameters for dn.heaps.input.Controller
I tried several options, including
var ca : dn.heaps.input.Controller<en.MyGameActions>;
But then I get errors down the line in the new function on
ca = Main.ME.controller.createAccess("hero"); // creates an instance of controller
Error: dn.legacy.ControllerAccess should be dn.heaps.input.Controller
And now I'm quite confused.
Hi, Sorry, the Controller class was completely reworked recently.
You can simply rename any occurrence of dn.heaps.Controller
to dn.legacy.Controller
to use the old version (the one explained in the tutorial).
I'll try to re-write these docs as soon as possible, but right now I'm a bit overwhelmed 😅
Thanks for the help and for taking the time.
I follow the tutorial on your site and notice you updated dn.heaps.Controller. This class was move to namespace dn.heaps.inputs, so this project does not assemble now =(