Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
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), 17,605 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
No "you" in Collision Event? #356480
02/02/11 10:21
02/02/11 10:21
Joined: Sep 2007
Posts: 62
Germany
B
bodden Offline OP
Junior Member
bodden  Offline OP
Junior Member
B

Joined: Sep 2007
Posts: 62
Germany
The Collision-Event, initiated by pXent_setcollisionflag(ent1, ent2, NX_NOTIFY_ON_START_TOUCH) does not work for me correctly. In the event-function I want to find out, which entities clashed, so I wanted to use the "you"-pointer.

To test it, I modified the Plop()-Function/Event in earthball8.c. I added
Code:
function Plop()
{
// Play a ball impact sound.
	ent_playsound(eBlob,sPong,100);
	
	if (you)
	{
		printf("hallo");	
	}
}



==> the "you" is never set. Even if you add a second (PH_STATIC) physik-entity and kick the first one until they clash.

Do I missunderstand something? Where is the mistake?

Re: No "you" in Collision Event? [Re: bodden] #356581
02/02/11 20:04
02/02/11 20:04
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I can confirm your problem, see here:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=349680#Post349680

Still, it hasn't been fixed.


"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: No "you" in Collision Event? [Re: Superku] #356657
02/03/11 08:48
02/03/11 08:48
Joined: Sep 2007
Posts: 62
Germany
B
bodden Offline OP
Junior Member
bodden  Offline OP
Junior Member
B

Joined: Sep 2007
Posts: 62
Germany
Thanks for your answer. Sorry for not have seen this threat bevore, but it's not easy to search in this forum...

Also thanks for the pXent_setbodyflag-hint in your post! Man, if I knew it before it would have saved me a lot of time!

Re: No "you" in Collision Event? [Re: bodden] #356701
02/03/11 15:15
02/03/11 15:15
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You're welcome.

Originally Posted By: JCL
The friction event indeed does not set the you pointer. This will be added.



"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

Moderated by  HeelX, Spirit 

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