Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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 (7th_zorro), 793 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
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 | 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