11 July 2017 03:58
High all,
I've pretty much followed this workflow to-the-tee (the node based approach):
link
as well as a youtube video that deals with similar functionality.
Strange problem…
After adding my code to the JS; which includes:
requiring logic nodes
append_custom_callback
and adding my custom function
I've checked, double checked and triple checked that I've put the code in the right place and I've compiled as 'copy' AND 'compile' (just to investigate), but when I run the app from the Project Manager, I get a load fail.
I've opened the console window and the error reported is: "Can't find variable: change_cb", which is the name specified in my custom code, for example:
I don't know if it's pertinent, but the object in the scene is also 'unselectable', and the outline function isn't working.
Pulling my hair out with this one.
As usual, any help would be sincerely appreciated.
Thanks in advance
Charlie
I've pretty much followed this workflow to-the-tee (the node based approach):
link
as well as a youtube video that deals with similar functionality.
Strange problem…
After adding my code to the JS; which includes:
requiring logic nodes
append_custom_callback
and adding my custom function
I've checked, double checked and triple checked that I've put the code in the right place and I've compiled as 'copy' AND 'compile' (just to investigate), but when I run the app from the Project Manager, I get a load fail.
I've opened the console window and the error reported is: "Can't find variable: change_cb", which is the name specified in my custom code, for example:
m_logic_n.append_custom_callback("change", change_cb);
I don't know if it's pertinent, but the object in the scene is also 'unselectable', and the outline function isn't working.
Pulling my hair out with this one.
As usual, any help would be sincerely appreciated.
Thanks in advance
Charlie