I searched Youtube but they did not have anything, please help.
Edited by Supertoad25, 19 January 2012 - 04:23 PM.
Posted 13 January 2012 - 11:28 PM
Edited by Supertoad25, 19 January 2012 - 04:23 PM.
Posted 14 January 2012 - 12:15 AM
Posted 14 January 2012 - 12:29 AM
var strafe; strafe = 2; //How fast to strafe //Strafe left x += lengthdir_x(strafe, direction + 90); y += lengthdir_y(strafe, direction + 90); //Strafe right x += lengthdir_x(strafe, direction - 90); y += lengthdir_y(strafe, direction - 90);
Edited by Big J, 14 January 2012 - 12:32 AM.
Posted 19 January 2012 - 03:48 AM
To strafe left, you'll be strafing in direction + 90; to strafe right, direction - 90.
var strafe; strafe = 2; //How fast to strafe //Strafe left x += lengthdir_x(strafe, direction + 90); y += lengthdir_y(strafe, direction + 90); //Strafe right x += lengthdir_x(strafe, direction - 90); y += lengthdir_y(strafe, direction - 90);
Posted 19 January 2012 - 04:58 AM
Posted 19 January 2012 - 04:26 PM
Are you calling instance_destroy() from within a destroy event? Are you calling screen_redraw() in the draw event? Is a script calling itself forever? In all cases, the result is infinite recursion which causes a stack overflow and ends the game without warning and without any visible error message.
0 members, 0 guests, 0 anonymous users