Game.SetMouseCursor('GUI/mouse.bmp'); Game.SetMouseOffset(32,32);
MouseOffset is where the image hotspot is. Center of the image is considered as (0,0). For 64×64 image, topleft corner is (32,32)
Insert to an onRoomMouseDown event Actor.ClearWalkpoints();
function onRoom01MouseDown() Actor.ClearWalkpoints(); end
See list of virtual key codes
Now if you want to do something with space, use VK_SPACE
function SpaceKeyPress() Actor.Jump(1,2); end Game.Bind(VK_SPACE,'SpaceKeyPress');
If you want to use a key like 'W' that isn't found in the list, use Game.Ord('W') to change it to Virtual Key Code.
function FunctionToRun() --something end Game.Bind(Game.Ord('W'),'FunctionToRun');
Dage doesn't have an easy function to do this, but you could do it with this little help from Lua:
function DumpVariables() Game.LOG('Dumping global variables'); for n,v in pairs(_G) do -- Check all pairs from global tables Game.LOG(tostring(n).. ' - ' ..tostring(v)); -- LOG n - name and v - value end Game.LOG('Dumping done.'); end DumpVariables(); -- Call every time you need to dump.