Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AemStones, AndrewAMD, gamers, Kingware), 1,679 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
HOW: Using the Crosshair as mouse #107423
01/18/07 12:45
01/18/07 12:45
Joined: Sep 2006
Posts: 106
FairyLand!!!
RruthH Offline OP
Member
RruthH  Offline OP
Member

Joined: Sep 2006
Posts: 106
FairyLand!!!
Hi!

How can i use the crosshair (the template, pressing 'K') as a mouse? So i dont have to right-click to activate the mouse anymore.

Also it would be in the middle of a screen like most FPS games.
When they put the crosshair over an item, the item is highlighted and a text above it appears. So i want the events (click and touch) to respond to the crosshair. Did i say it right? sorry for bad english.

Thnx for the help!

Re: HOW: Using the Crosshair as mouse [Re: RruthH] #107424
01/18/07 13:09
01/18/07 13:09
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
you just have to define a panel, which is in the middle of the screen.


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: HOW: Using the Crosshair as mouse [Re: Puppeteer] #107425
01/18/07 13:57
01/18/07 13:57
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
I call this in function Main
Code:
 while(1)
{
mouse_map = cross;
mouse_mode = 1;

mouse_pos.x = screen_size.x / 2-8;
mouse_pos.y = screen_size.y / 2-8;
wait(1);
}




Visit:
schwenkschuster-design.de
Re: HOW: Using the Crosshair as mouse [Re: aztec] #107426
01/18/07 14:04
01/18/07 14:04
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline
Member
Roy  Offline
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
Maybe mouse_mode = 1 has to be mouse_mode = 2;
And you better can't call the mouse_map and the mouse_mode in the while(1) loop, i guess.


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