Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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