|
|
need help.......error E1513 when enter level 2
#99376
11/21/06 01:39
11/21/06 01:39
|
Joined: Aug 2006
Posts: 68
alex5801
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2006
Posts: 68
|
i get this error when i hit the block to trigger the function to go to next level. "crash in handle_char1_movement: ent_move(nullvector,my.move_x)"
but in the first level have no problem at all. even i run strait level 2 have no problem at all, it only occur when i try to enter level 2 by hiting the block to triger the event anyone know what wrong with it?
thx in advance
Last edited by alex5801; 11/22/06 01:36.
|
|
|
Re: need help.......error E1513
[Re: DLively]
#99380
11/23/06 03:36
11/23/06 03:36
|
Joined: Aug 2006
Posts: 68
alex5801
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2006
Posts: 68
|
function level_change() { wait(1); if (EVENT_TYPE == event_impact) { changeto_level = my.skill1; my = NULL; vec_set(temp_loc,player1.x); vec_set(temp_ang,player1.pan); camera.visible = off; freeze_mode = 1; if (changeto_level == 1) { changeto_level = 0; level_load("level1.wmb"); } if (changeto_level == 2) { changeto_level = 0; level_load("level2.wmb"); } freeze_mode = 0; wait(2); vec_set(player1.x,temp_loc); vec_set(player1.pan,temp_ang); camera.visible = on; } }
action zone_block { my.alpha = 0; my.transparent = on; my.enable_impact = on; my.event = level_change(); } ------------------------------------------------------------------------------ this is the code for level change
Last edited by alex5801; 11/23/06 03:46.
|
|
|
Re: need help.......error E1513
[Re: alex5801]
#99381
11/23/06 14:27
11/23/06 14:27
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
Serious User
|
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
Well, first off, this line of code, should probably be set up like this: _____________________________________________________________________________________________________
if (changeto_level == 1) { changeto_level = 0; level_load("level1.wmb"); }
if (changeto_level == 1) { level_load("level1.wmb"); changeto_level = 0; }
_____________________________________________________________________________________________________
Second, after your script loads the level, it hasnt finished the script (which was running in the last level) so its going to try and finish it from the last map, and if it cant find the play from the last map, its going to give you an error... I think...
Last edited by Young_link; 11/23/06 14:30.
|
|
|
Re: need help.......error E1513 when enter level 2
[Re: alex5801]
#99383
11/29/06 13:07
11/29/06 13:07
|
Joined: Aug 2006
Posts: 68
alex5801
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2006
Posts: 68
|
Code:
FUNCTION level_change() { if (EVENT_TYPE == event_impact) { g=1; } }
ACTION zone_block { my.alpha = 0; my.transparent = on; my.enable_impact = on; my.event = level_change(); }
i try to find out the problem of my level changing so i remove all the coding in the function and change to g=1 but it still give me the same error. it look like it will happen as long my.event = level_change is there. as long the function triger by my.event is not one of the function in my Action player1_action, it give the same problem anyone have any idea on solving this problem?
Last edited by alex5801; 11/30/06 13:11.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|