R
Raff
Guest
Hello everybody,
How can i get working this:
Because col2 returns "-1" when collision.
I already tried it with "instance_position" too.
I want to have a one way collision object, and i have it working, but some times, when i jump from a concrete position, the player gets stuck in the middle of the object instead of on top. So i want to have the bbox_top of that object to try the collision just with the top of it.
Thankyou very much !!!
How can i get working this:
Code:
if(instance_place(x, y, ob_block))
{
var inst = instance_nearest(x, y, ob_block);
col2 = sprite_get_bbox_top(object_get_sprite(inst));
}
I already tried it with "instance_position" too.
I want to have a one way collision object, and i have it working, but some times, when i jump from a concrete position, the player gets stuck in the middle of the object instead of on top. So i want to have the bbox_top of that object to try the collision just with the top of it.
Thankyou very much !!!