I
IE Entertainment
Guest
So, I was learning how to code a one-way platform where the player can jump up onto a platform from a position of standing directly under it. Think smash brothers. I found one of Shaun Spawldings tutorials and followed it but I am having one problem. While the player can jump through the platform, it isn't solid when the player lands so he just falls through the platform back to the ground. I couldn't find a fix from others who had the same issue so I am wondering if anyone of you guys may have ideas? Here is the code...
One Way Platform CREATE EVENT
sprite_index = -1;
One Way Platform STEP EVENT:
if (instance_exists(obj_player))
{
if (round(obj_player.y + (obj_player.sprite_height/2)) > y) || (obj_chroma.key_down) mask_index = -1;
else mask_index = spr_platform;
}
Thanks in advanced for the help!!!
One Way Platform CREATE EVENT
sprite_index = -1;
One Way Platform STEP EVENT:
if (instance_exists(obj_player))
{
if (round(obj_player.y + (obj_player.sprite_height/2)) > y) || (obj_chroma.key_down) mask_index = -1;
else mask_index = spr_platform;
}
Thanks in advanced for the help!!!