collision situation.

B

BlueBird02

Guest
Every time when the player model collides with the other character's (objects) collision, it works, but whenever it collides with the other character's collisions, the player character get's STUCK. I want the character's collision to be SMOOTH as they touch each's other's collision and not get stuck.

Would you please help me here?

Here's the main character's model (the black sheep). I can only get out by going the opposite direction (DOWN), but can't go left or right.

MOD EDIT: Double post merged. Please do not post more than once in a row. Instead use the Edit button to add more information to your existing post(s). ~ Ragarnak
 

Attachments

Last edited by a moderator:
B

BlueBird02

Guest
if(keyboard_check(ord("D")) && place_free(x + collisionSpeed, y)) {
x += walkspeed;
image_speed = walkspeed / 3;
sprite_index = spr_malisa_right;
}
if(keyboard_check(ord("A")) && place_free(x - collisionSpeed, y)) {
x -= walkspeed;
image_speed = walkspeed / 3;
sprite_index = spr_malisa_left;
}
if(keyboard_check(ord("S")) && place_free(x, y + collisionSpeed)) {
y += walkspeed;
image_speed = walkspeed / 3;
sprite_index = spr_malisa_downs;
}
if(keyboard_check(ord("W")) and place_free(x, y - collisionSpeed)) {
y -= walkspeed;
image_speed = walkspeed / 3;
sprite_index = spr_malisa_up;
}
if(keyboard_check (vk_nokey)) {
image_speed = 0;
image_index = 0;
}


This is the black sheep's code. If that's the one your asking.
 
B

BlueBird02

Guest
When I go to the SIDES, it works when I go UP-LEFT, or UP-RIGHT. Is there something I'm missing?
 

Attachments

Top