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
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 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
c_move crash [SOLVED] #298325
11/13/09 22:19
11/13/09 22:19
Joined: Jun 2009
Posts: 8
Romania
A
AlexMP Offline OP
Newbie
AlexMP  Offline OP
Newbie
A

Joined: Jun 2009
Posts: 8
Romania
Hi everyone!

I try to make a game in which the player must push boxes away in order to complete the level. So I added ACTIVATE_PUSH to the player movement and made a function for every box:
Code:
function boxmove(){
	if (event_type == EVENT_PUSH)
	{
		snd_play(tap,100,0); //play a sound
		c_move(me,vector(-30,0,60),NULL,NULL);
	}
}


If I don't use flags everything is fine, otherwise the engine crashes (after the sound is played). I get the message "acknex.exe has encountered a problem and needs to close".
What is wrong?
Thanks

Last edited by AlexMP; 11/14/09 10:20.
Re: c_move crash [Re: AlexMP] #298326
11/13/09 22:50
11/13/09 22:50
Joined: Sep 2009
Posts: 496
P
Progger Offline
Senior Member
Progger  Offline
Senior Member
P

Joined: Sep 2009
Posts: 496
try to do a wait(1); after it (:
But im not sure


asking is the best Way to get help laugh laugh laugh
Re: c_move crash [Re: AlexMP] #298329
11/13/09 23:39
11/13/09 23:39
Joined: Feb 2009
Posts: 25
Mexico City
DavidOC Offline
Newbie
DavidOC  Offline
Newbie

Joined: Feb 2009
Posts: 25
Mexico City
I had the same error, the manual says you should not call c_move on triggered events, set a flag and then update the movement in the entity action.

Regards.

Re: c_move crash [Re: DavidOC] #298335
11/14/09 10:19
11/14/09 10:19
Joined: Jun 2009
Posts: 8
Romania
A
AlexMP Offline OP
Newbie
AlexMP  Offline OP
Newbie
A

Joined: Jun 2009
Posts: 8
Romania
Thanks DavidOC, it works.


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