You have something else strange going on there. When you move off of a platform, you float. And if you press left while floating, you fall. i'll have a look at it.
edit: gm and i fixed the walking issue. Still working on jumping and falling. Replace your step event code on the player with this:
if position_empty(x,y) = true{
gravity = 0.5
if playerdirection = 1{
sprite_index = plrspr_jumpleft;
}
if playerdirection = 2{
sprite_index = plrspr_jumpright;
}
else
gravity = 0
}
if vspeed >= 10{
vspeed = 10
}
if hud_plrstatscontroller.weaponchange = false{
if keyboard_check(vk_left) = true{
playerdirection = 1;
sprite_index = plrspr_walkleft;
if position_empty(x,y){
x -= hud_plrstatscontroller.playeragility*2.5;
}
else
{
x -= hud_plrstatscontroller.playeragility*1.5;
}
}
if keyboard_check(vk_right) = true{
playerdirection = 2;
sprite_index = plrspr_walkright;
if position_empty(x,y){
x += hud_plrstatscontroller.playeragility*2.5;
}
else
{
x += hud_plrstatscontroller.playeragility*1.5;
}
}
if keyboard_check('Z') = true and (!position_empty(0,1)){
vspeed=-10
}
}
if keyboard_check_released(vk_left) = true and playerdirection = 1{
sprite_index = plrspr_idleleft;
}
if keyboard_check_released(vk_right) = true and playerdirection = 2{
sprite_index = plrspr_idleright;
}
edit2: falling is fixed, just have to fix the jumping now..