The problem is, I have a character, a 16x16 block. He jumps around on a bunch of blocks. If he jumps from a high ledge, he starts vibrating in mid air and falls. Then, I'm unable to move him.
My floors are all solids.
Here's the code in the creation event:
<img alt="">xspeed = 0; yspeed = 0; xtar = x; image_speed = 0;
Step Event:
gravity = place_free(x,y+1)*0.5;
x += xspeed;
y += yspeed;
xspeed = 0;
yspeed = 0;
if(keyboard_check(vk_right)) {
if(place_free(xtar+16,y) && x == xtar) {
xtar += 16;
image_index = 0;
}
}
if(keyboard_check(vk_left)) {
if(place_free(xtar-16,y) && x == xtar) {
xtar -= 16;
image_index = 1;
}
}
if(keyboard_check(vk_up)) {
if(place_meeting(x,y+1,o_block)) {
vspeed = -5;
}
}
if(x < xtar) {
xspeed += 4;
}
if(x > xtar) {
xspeed -= 4;
}Collision with o_block:
move_contact_solid(direction,vspeed);
vspeed = 0;
if(y < other.y-16) {
y = other.y-16;
}And here's the gmk if you wanted to take a look:
Download Link
This is in GM8 format.
Thanks.











