Okay, that almost works, thanks. I've got this code now for the collision:
if object collision(1,5)>0
if get object collision y()>0.0
y#=y#-get object collision y()
grav#=0.0
endif
endif
If I move the "y#=y#-get object collision y()" and the "grav#=0.0" BETWEEN the "if object collision(1,5)>0" and "if get object collision y()>0.0", then everything works fine, except when I collide with the object from the side. Then the object 1 just moves to the top of the block, which I can't have. When I move two BELOW the "if get object collision y()>0.0" (like it is now), then object 1 falls straight through the block. What's up?
And does anyone know the answer to my second question? Thanks.
Where my hat is at?