Jump to content
You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality.
KuzTum hasn't added any friends yet.
02 May 2012 - 01:07 AM
just check the Solid in obj_block
02 April 2012 - 09:20 PM
Actually your Step event could do with some indentation. I also noticed misplaced parentheses that caused the keyboard check to be done incorrectly.//JUMPING if (Jump > 0) { if (keyboard_check(ord('W')) && !keyboard_check(ord('S'))) { vspeed = -10; Jump -= 1; } } //GRAVITY if (place_free(x, y + 1)) { gravity = 0.5; } else { gravity = 0; }When you say gravity is "not working" I don't know what you mean by that. :D
Actually your Step event could do with some indentation. I also noticed misplaced parentheses that caused the keyboard check to be done incorrectly.
//JUMPING if (Jump > 0) { if (keyboard_check(ord('W')) && !keyboard_check(ord('S'))) { vspeed = -10; Jump -= 1; } } //GRAVITY if (place_free(x, y + 1)) { gravity = 0.5; } else { gravity = 0; }
02 April 2012 - 01:46 AM
No, don't mess with the Step Event. Just ADD a Create Event and put 1 line in it:Jump = 0;
No, don't mess with the Step Event. Just ADD a Create Event and put 1 line in it:
Jump = 0;
01 April 2012 - 10:56 PM
in the create event for that object put:Jump = 0
in the create event for that object put:
Jump = 0
01 April 2012 - 10:53 PM
Apparently the variable was never set, for example, in the Create Event of the Obj_char_right.