Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 827 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mouse Problem [Solved] #235595
11/08/08 18:37
11/08/08 18:37
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
Can anyone tell me what's wrong with this script?

////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

////////////////////////////////////////////////////////////////////
var speed = 50;

BMAP* mouse_pcx = "mouse.pcx"; // bitmap used for the mouse pointer

////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7;
screen_color.blue = 150;
mouse_map = mouse_pcx;
mouse_mode = 4;
}

//////////////////////////////////////////////////////////////////////

PANEL* main_pan =
{
bmap = "main2.pcx";
pos_x = 250;
pos_y = 200;
vslider (16, 71, 90, "slider.pcx", 0, 100, speed);
digits (15, 50, 3, *, 1, speed);
flags = OVERLAY | VISIBLE;
}

//////////////////////////////////////////////////////////////////////

This script came with the lite-c tutorial, so it should work. But I can't even see my mouse. Let alone use the slider.

Last edited by Secret_V; 11/08/08 20:33.
Re: Mouse Problem [Re: Secret_V] #235596
11/08/08 18:39
11/08/08 18:39
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
try putting a mouse_mode = 1; instead of 4
are you sure you have that mouse bitmap in your project folder?



Ubi bene, ibi Patria.
Re: Mouse Problem [Re: croman] #235598
11/08/08 18:46
11/08/08 18:46
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
That doesn't work. And I'm sure that mouse bitmap is in the right folder, double checked it. If it weren't, SED would give me an error when I try Test Play, but it doesn't. Plus, this is one of the scripts included in the tutorial, which I downloaded from the official 3DGS site...

Re: Mouse Problem [Re: Secret_V] #235605
11/08/08 19:51
11/08/08 19:51
Joined: Sep 2008
Posts: 66
falagar8 Offline
Junior Member
falagar8  Offline
Junior Member

Joined: Sep 2008
Posts: 66

I've had a similar problem.
It works when the screen is in windowed mode
but the mouse doesn't show nor appear in fullscreen
mode.
And by that I mean:

when I hit the alt+enter keys to alternate back and forth between windowed and full screen modes.
Also when I manually set for a fullscreen mode in the function main.

And I have used all the modes for mouse_mode too.
I wonder if there is some sort of Show_Mouse and Hide_Mouse commands that I have to call when in fullscreen mode??

Re: Mouse Problem [Re: falagar8] #235606
11/08/08 19:57
11/08/08 19:57
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
Well, my mouse doesn't show up at all. Whether I'm in windowed mode or fullscreen mode, it doesn't matter.

Re: Mouse Problem [Re: Secret_V] #235608
11/08/08 20:08
11/08/08 20:08
Joined: Sep 2008
Posts: 66
falagar8 Offline
Junior Member
falagar8  Offline
Junior Member

Joined: Sep 2008
Posts: 66

Let me try one more time.

Re: Mouse Problem [Re: falagar8] #235609
11/08/08 20:14
11/08/08 20:14
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
try this...

Code:
#include <acknex.h>
#include <default.c>

////////////////////////////////////////////////////////////////////
var speed = 50;

BMAP* mouse_pcx = "mouse.pcx"; // bitmap used for the mouse pointer

////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7; 
screen_color.blue = 150;
mouse_map = mouse_pcx;
mouse_mode=1;

while(1) 
{
mouse_pos.x = mouse_cursor.x;    // snap mouse
mouse_pos.y = mouse_cursor.y;    // snap mouse
wait(1);
}
}

//////////////////////////////////////////////////////////////////////

PANEL* main_pan =
{
bmap = "main2.pcx";
pos_x = 250; 
pos_y = 200; 
vslider (16, 71, 90, "slider.pcx", 0, 100, speed); 
digits (15, 50, 3, *, 1, speed); 
flags = OVERLAY | VISIBLE;
}


Re: Mouse Problem [Re: DJBMASTER] #235611
11/08/08 20:23
11/08/08 20:23
Joined: Sep 2008
Posts: 66
falagar8 Offline
Junior Member
falagar8  Offline
Junior Member

Joined: Sep 2008
Posts: 66

Thank you for helping.

It does work in windowed screen mode.
But again, does not work in fullscreen mode by switching with alt+enter keys or even by a manual set to fullscreen in the main function. :\

Re: Mouse Problem [Re: falagar8] #235612
11/08/08 20:33
11/08/08 20:33
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
Problem solved, thank you very much! It even works in full screen mode with me... I'm sorry Falagar8, I can't help you...

Re: Mouse Problem [Re: Secret_V] #235614
11/08/08 20:40
11/08/08 20:40
Joined: Sep 2008
Posts: 66
falagar8 Offline
Junior Member
falagar8  Offline
Junior Member

Joined: Sep 2008
Posts: 66

Its cool and okay.
Its for the learning.

I got a weird mouse icon anyway.
Its a seashell and makes a mermaid sound when I click. smile


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1