Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with ENABLE_FRICTION #211459
06/16/08 20:02
06/16/08 20:02
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline OP
Newbie
RicheyMB2  Offline OP
Newbie
R

Joined: Feb 2008
Posts: 39
I am having a problem with friction events. I have 1 'PhysicsBlock' object in my world and as soon as it rests on the ground the engine crashes out.

The code is as follows, if anyone can tell me where I'm going wrong that would be great!

Code:
function impact_event()
{
	return;	
}

action PhysicsBlock()
{

	phent_settype(me,PH_RIGID, PH_BOX);
	phent_setmass(me, 10, PH_BOX);
	phent_setfriction(me, 90);
	phent_setelasticity(me, 30, 100);
	phent_setdamping(me, 15,15);
	//phent_setgroup(me,5);
	set(me,SHADOW);
	my.emask |= ENABLE_FRICTION;
 	my.event = impact_event();	
	while(1)
	{
		wait(1);	
	}
}
 


Re: Problem with ENABLE_FRICTION [Re: RicheyMB2] #211480
06/16/08 21:26
06/16/08 21:26
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline
Newbie
LaQroix  Offline
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
Normally u should have a warning but since 7.07 version is buged u are on your own to realize ur mistake. I think ur mistake is at my.event = impact_event line. Probably the correct form is without brackets. -- my.event = impact_event; --

Re: Problem with ENABLE_FRICTION [Re: LaQroix] #211586
06/17/08 12:11
06/17/08 12:11
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline OP
Newbie
RicheyMB2  Offline OP
Newbie
R

Joined: Feb 2008
Posts: 39
Thanks.


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