Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need help please .. in entity event #335374
07/28/10 02:08
07/28/10 02:08
Joined: Jul 2010
Posts: 32
E
EID Offline OP
Newbie
EID  Offline OP
Newbie
E

Joined: Jul 2010
Posts: 32
hey all.
just in the following code the car need to impact with the ball then the event will called . so, how to activate the event (ENTITY) between car and the ball .
here is the code.
function detect()
{
if (event_type == EVENT_ENTITY)
{
my.z=60;
}
}
action ball()
{
my.push=3;
my.emask |= ENABLE_IMPACT; // lite-C
my.event = detect;
}
action car_with_pointer()
{
my.push=4;
my.emask |= ENABLE_IMPACT;
my.event = detect;
while (1)
{
if (key_cur)
{
my.pan += 3*time_step;
}
if (key_cul)
{
my.pan -= 3*time_step;
}
if (key_cuu)
{
c_move (my, vector(10 * time_step, 0, 0), nullvector, GLIDE);
}
wait (1);
}
}

Re: need help please .. in entity event [Re: EID] #335378
07/28/10 04:29
07/28/10 04:29
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
drive into the ball with the car

Re: need help please .. in entity event [Re: badapple] #335386
07/28/10 08:07
07/28/10 08:07
Joined: Jul 2010
Posts: 32
E
EID Offline OP
Newbie
EID  Offline OP
Newbie
E

Joined: Jul 2010
Posts: 32
what do u mean??

Re: need help please .. in entity event [Re: EID] #335398
07/28/10 09:32
07/28/10 09:32
Joined: Jul 2010
Posts: 32
E
EID Offline OP
Newbie
EID  Offline OP
Newbie
E

Joined: Jul 2010
Posts: 32
yes i do this and nothing change..

Re: need help please .. in entity event [Re: EID] #335404
07/28/10 10:30
07/28/10 10:30
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
well for one thing the car cannot detect the ball because the ball has a lower push value.
so the ball can only detect the car and should its event when the entities overlap.
the event places detecting object(the ball) at a z of 60

and thats what should be happening from the looks of the code

Re: need help please .. in entity event [Re: badapple] #335416
07/28/10 12:15
07/28/10 12:15
Joined: Jul 2010
Posts: 32
E
EID Offline OP
Newbie
EID  Offline OP
Newbie
E

Joined: Jul 2010
Posts: 32
so i can change the push value of the ball to be bigger than the car can i try it??


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