Collision works now! I just needed to replace my.y -= speed*time; with c_move (my, nullvector, vector(0, speed*time, 0), GLIDE);

Someone said that already, but I didn't understand what they meant. Thanks for the help, but expect another question soon because I'm having problems with keyboard functions.