This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

mouse pointer

mouse pointer

Postby TattieBoJangle » 28 Jan 2015, 03:10

Hi guys can you release the mouse pointer when running your game it is like this but the mouse pointer is bigger.

User avatar
TattieBoJangle
Community Manager
Community Manager
 
Posts: 858
Joined: 26 Jan 2015, 00:15
Location: United Kingdom
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer
Skill: Great creative

Re: mouse pointer

Postby SolarPortal » 28 Jan 2015, 10:39

you can enable mouseTrap in the lua script onInit function.

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


next add the mousetrap lua command underneath the obj = objID;

Code: Select all
game.setMouseTrap(1); -- 1 means enable mousetrap, 0 means disable mouse trap.


This will make the screen wrap around and remove the cursor.
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: mouse pointer

Postby TattieBoJangle » 28 Jan 2015, 13:17

Works great may i suggest it be in the next update ;)
User avatar
TattieBoJangle
Community Manager
Community Manager
 
Posts: 858
Joined: 26 Jan 2015, 00:15
Location: United Kingdom
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer
Skill: Great creative

Re: mouse pointer

Postby StarFire » 28 Jan 2015, 13:47

We could do but not every project requires a hidden mouse cursor as some may work from a ui perspective. Therefor we have made it a programmable feature to give the user the greatest range of choice ;)

We could add it to the scene script as a rem'd out bit of code to save any user looking for it.
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron