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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 13,972 guests, and 6 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
WHO DID COLLIDE ME ??? #322502
05/07/10 15:34
05/07/10 15:34
Joined: Jun 2005
Posts: 11
turkey
TalontheLord Offline OP
Newbie
TalontheLord  Offline OP
Newbie

Joined: Jun 2005
Posts: 11
turkey
I read 24th Lite-C Tutorial named "SHOOTER" and also have had some problems:

1. Imagine, there are three balls are moving in the 3d World. They are red, green and blue balls. They are wandering to different random directions on the floor. Be sure, All of them have their own "actions" code. I used "c_move" for their movements. For example ,in my code a sound effct plays when one of them collide to any one. But every each ball must know that which ball collided itself. This is my problem. Every Ball has following same code in their "Action":

red_ball.event = red_bal_hit;
red_ball.emask |= ENABLE_IMPACT;

Be, sure "red_bal_hit" is the name of a function that is used to play the sound effect. But I don't know that which Ball (green or blue) collided to the red ball now. I haven't seen any explation about this.

2. I tried and saw:
I can't detect the collisions using "c_move" if an entity stands still on the floor
without moving. It is required to move it a little on the x, y or z coordinates to activate all collisions. I'm sure there is a function to detect the collisions for moveless objects..

All my question may be very simple for you(or funny). But I'm a beginner and love this enginee very much. Thanks in advance..


dart
Re: WHO DID COLLIDE ME ??? [Re: TalontheLord] #322503
05/07/10 15:38
05/07/10 15:38
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
perhaps
set(my,POLYGON);


asking is the best Way to get help laugh laugh laugh
Re: WHO DID COLLIDE ME ??? [Re: Progger] #322567
05/07/10 22:12
05/07/10 22:12
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Give to each Ball a own skill. Red ball skill1 = 1, green ball skill1 = 2 and the blue ball skill1 = 3. You can set this skills in WED or also in SED.
Now you can use:
if(you.skill1 == 2) / so you know this ball colidies with the green one.

Re: WHO DID COLLIDE ME ??? [Re: Widi] #322571
05/07/10 22:29
05/07/10 22:29
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
red_ball.emask |= ENABLE_IMPACT;

I can't detect the collisions using "c_move" if an entity stands still on the floor without moving.


That is correct as IMPACT only does react on other moving objects that collide with red_ball. You need to ENABLE_ENTITY, too (the name is somehow misleading...).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: WHO DID COLLIDE ME ??? [Re: Widi] #322623
05/08/10 14:26
05/08/10 14:26
Joined: Jun 2005
Posts: 11
turkey
TalontheLord Offline OP
Newbie
TalontheLord  Offline OP
Newbie

Joined: Jun 2005
Posts: 11
turkey
You are great friend.. Thank you so much..


dart
Re: WHO DID COLLIDE ME ??? [Re: Superku] #322625
05/08/10 14:35
05/08/10 14:35
Joined: Jun 2005
Posts: 11
turkey
TalontheLord Offline OP
Newbie
TalontheLord  Offline OP
Newbie

Joined: Jun 2005
Posts: 11
turkey
Thank you so much for your golden explanation. As you guess, I'm still a rookie.


dart

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