Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
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
1 registered members (henrybane), 530 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Baklazhan, Hanky27, firatv, wandaluciaia, Mega_Rod
19052 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
aiming #175830
01/02/08 09:07
01/02/08 09:07
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
does anyone know of a easy way to have a aiming reticle


The only thing in life you can depend on is death and taxes.
Re: aiming [Re: onslaught147] #175831
01/02/08 11:41
01/02/08 11:41
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
are you useing the templets ? if so i believe this feature is built in already
but i dont use them so cant say for sure, if your not useing templets , it is also easy to code it yourself

bmap sight1_bmp = <somebmp.bmp>;
bmap sight2_bmp = <somebmp2.bmp>; //use for when over enemy

mouse_mode=1;

//put a while loop in your function main to store mouse pos

give your enemys a skill in this case skill17 and a value of 2 "my.skill17=2;"
then the if statment in the while loop checks to see if the mouse pointer is
touching an enemy , if so it changes the image


while(1)
{

MOUSE_POS.x = screen_size.x/2;
MOUSE_POS.y = screen_size.y/2;
mouse_spot.x=bmap_width(sight1_bmp)/2;
mouse_spot.y=bmap_height(sight1_bmp)/2;
mouse_map=sight1_bmp;

if(mouse_ent!=null)
{
if(mouse_ent.skill17==2){mouse_map=sight2_bmp;wait(20);}
else{mouse_map=sight1_bmp;}
}
wait(1);
}



hope this helps


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