Hi m8 you need to hook the mouse I will do a tut on this tomorrow as it catches a few people out.
Right click in the scene and choose "Lua - SceneScript". The script editor should open.
> If there is not an onInit function, go to the snippets on the side and look under the blue section for "Main Game Events".
Double click on the "Game onInit()" or copy this code:
- Code: Select all
obj = 0;
function onInit(objID)
obj = objID;
end
game.setMouseTrap(1); -- 1 means enable mousetrap, 0 means disable mouse trap.