Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by madpower2000. 07/17/26 19:03
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
New Lic: When does the Support clock start?
by Student_64151. 07/17/26 01:38
New Zorro version 3.11
by madpower2000. 07/16/26 13:49
What are you working on?
by NeoDumont. 07/15/26 16:38
Zorro version 3.0 prerelease!
by madpower2000. 07/14/26 20:11
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (ukgamer), 2,493 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 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 | 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