Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/26/26 12:17
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Grant, 1 invisible), 5,556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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