Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, M_D), 1,217 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | chip programmers | 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