Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 22:06
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, alibaba, 1 invisible), 5,511 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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