Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
channge crosshair #254354
03/02/09 18:37
03/02/09 18:37
Joined: Apr 2008
Posts: 245
GameScore Offline OP
Member
GameScore  Offline OP
Member

Joined: Apr 2008
Posts: 245
how can i change the crosshair when i touch an enemy?
my template code is
function PlBipedWeap00_Display_Crosshair()
{
// Display crosshair
plBipedWeap00_crosshair1_pan.visible = on;
plBipedWeap00_crosshair1_pan.pos_x = (screen_size.x - bmap_width(plBipedWeap00_crosshair1_bmp))/2;
plBipedWeap00_crosshair1_pan.pos_y = (screen_size.y - bmap_height(plBipedWeap00_crosshair1_bmp))/2;
}

Re: channge crosshair [Re: GameScore] #254421
03/03/09 10:09
03/03/09 10:09
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
you could use something like this in a while loop , put my.skill11=1; in your enemys code ive used this and it worked fine

if(mouse_ent!=NULL)
{
if(mouse_ent.skill11==1)
{
mouse_map=sightred_tga;
}
else
{
mouse_map=sightgreen_tga;
}
}


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