| 1 | event_inherited(); |
| 2 | obj_pl.x = x; |
| 3 | obj_pl.y = y; |
| 4 | palette_index = obj_pl.palette_index; |
| 5 | shader_on = obj_pl.shader_on; |
| 6 | if (npc_dynamic_depth == true) |
| 7 | depth = -y; |
| 8 | if (can_walk == true && is_walking == true) |
| 9 | { |
| 10 | image_speed = 0.2; |
| 11 | if (sprite_index == spr_pl_run_up || sprite_index == spr_pl_run_right || sprite_index == spr_pl_run_left || sprite_index == spr_pl_run_down) |
| 12 | image_speed = 1/3; |
| 13 | } |