Telorr
Member
Hi!
I have a problem here.
I want to make simple shadow beneath the player. I want the shadow always stick to the ground (oBlock) whenever I move/jump. But, it only stick to the ground when I'm moving. When I'm jumping, the shadow will moved to the max room_height point. Please fix my code:
Help this newbie to solve his absurd problem. Thanks!
I have a problem here.
I want to make simple shadow beneath the player. I want the shadow always stick to the ground (oBlock) whenever I move/jump. But, it only stick to the ground when I'm moving. When I'm jumping, the shadow will moved to the max room_height point. Please fix my code:
GML:
//DRAW Event
var shadowy = y + 96;
while (!place_meeting(x, y + 1, oBlock) && shadowy < room_height) {
shadowy++;
};
draw_sprite(sShadow, 0, x, shadowy);
draw_self()