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.