|
Post by n_iron on Jul 4, 2015 3:49:09 GMT
Hi everyone I have a problem with the mouse cursor disappearing, I have made an editor where you can place a buildings on to a terrain. Its not complete yet. I included some sprites and when I started it next the mouse cursor disappeared. Removed the sprites and it is stilled missing. Doesn't matter what I do now I can't make it return. I then compiled the project with a sprite cursor and it still is missing. It actually is visible on the windows task bar. I opened an older version of this and it worked I may have to redo it over again. n_iron
|
|
|
Post by Power Supersport on Jul 4, 2015 9:10:19 GMT
First... LOVE YOUR PROJECT! You're doing something similar to my Geometry dash Editor... Second... I can offer a solution... float x,y; void Main() {
x = iMouseX()*32.0-16.0; y = 12.0-iMouseY()*24.0;
iObjectLocationSet(OBJ_X,Vector3(x,y,0));
} OBJ_X is your custom cursor sprite...
|
|
|
Post by BorekS on Jul 4, 2015 10:24:21 GMT
I think the basic problem could be in the cursor image object properities, check the Sprite object render properities and its "layer" value.
|
|
|
Post by Power Supersport on Jul 4, 2015 11:32:19 GMT
But the Windows cursor never disappears on opened 3D Rad project in the 3D Rad's window... It disappears only when you have Cam1stPerson...
|
|
|
Post by n_iron on Jul 4, 2015 11:59:07 GMT
Hi Thanks BorekS I re-did the image had different sizes layers.
and thanks power that script fixed it. I have done that before but didn't think of doing here.
n_iron
|
|
|
Post by Power Supersport on Jul 4, 2015 12:35:47 GMT
No problem... I'm glad that helped...
|
|