Z
zendraw
Guest
so i have object1 which is checked as solid, and object2 which is not.
when object2 collides with objeect1, it runs this code
in other words it makes it move 1 pixel every frame while in collision event. but for some reason object2 stops, and object1 doesnt move. this code works only when i uncheck object1 as solid.
also, another example.
object1 is solid, object2 is not.
object1 has this code
if (place_free(x+image_xscale*4, y)) {x+=image_xscale*4}
but when it collides with object2 it doesnt move.
why the hell is it doing this? where is the logic in this? and how can one go around this without having to create a net with parents and multiple place_meeting checks? yoyo, BIG fail.
when object2 collides with objeect1, it runs this code
Code:
if (image_alpha)
{
with (other)
{
if (place_free(x+sign(other.hspeed), y)) {x+=sign(other.hspeed)};
if (place_free(x, y+sign(other.vspeed))) {y+=sign(other.vspeed)};
}
}
also, another example.
object1 is solid, object2 is not.
object1 has this code
if (place_free(x+image_xscale*4, y)) {x+=image_xscale*4}
but when it collides with object2 it doesnt move.
why the hell is it doing this? where is the logic in this? and how can one go around this without having to create a net with parents and multiple place_meeting checks? yoyo, BIG fail.