Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (fairtrader, AndrewAMD, 3run), 576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with event_click #182174
02/05/08 11:21
02/05/08 11:21
Joined: Jul 2006
Posts: 73
Saxony, Germany
F
Flori Offline OP
Junior Member
Flori  Offline OP
Junior Member
F

Joined: Jul 2006
Posts: 73
Saxony, Germany
Hi,
ich habe einen Script geschrieben wo man verschiedene Sachen bauen kann. Und wollte dann die Entitys auf Click und Touch reagieren lassen. Aber es funktioniert nur wenn die Camera nah am Objekt ist. Da aber die Camera bei mir in 2000 Quants Höhe ist funktionierts nicht.

Hi,
I've write a script with that you can build some things. And I've write that the entitys work when you click on them. But it only work when the camera is not far away from the objects. But the camera is in a height of 2000 quants and so it does'nt work.

Here is the code:

function remove_fnct()
{
if(event_type==event_click)
{
if(mouse_map==bomb)
{
snd_play(bumm,100,0);
sleep(1);
ent_remove(me);
return;
}
else
{
return;
}
}
if(event_type==event_touch)
{
my.ambient=100;
my.transparent=on;
}
if(event_type==event_release)
{
my.ambient=0;
my.transparent=off;
}
}

action ...
{
...
my.enable_click=on;
my.enable_touch=on;
my.enable_release=on;
my.event=remove_fnct;
...
}

Does someone have an idea how it work when the camera is in a height of 2000 quants?

My English is'nt thery good

Gruß Flori

Re: Problem with event_click [Re: Flori] #182175
02/05/08 12:39
02/05/08 12:39
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline
Member
Martek  Offline
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Du musst mit mouse_range arbeiten. Setze es auf 3000 und es sollte klappen.

Mfg, Martek


3D Gamestudio A7 Extra
Re: Problem with event_click [Re: Martek] #182176
02/05/08 12:45
02/05/08 12:45
Joined: Jul 2006
Posts: 73
Saxony, Germany
F
Flori Offline OP
Junior Member
Flori  Offline OP
Junior Member
F

Joined: Jul 2006
Posts: 73
Saxony, Germany
jou danke es klappt


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