This is my custom movement code, which I made all by myself. I figured out how to type it all in less than 2 minutes.
For objPlayer:
Create Event image_speed=0.3
moveable=1
moving=0
Step Event var d, u, l, r;
d = keyboard_check(vk_down)
u = keyboard_check(vk_up)
l = keyboard_check(vk_left)
r = keyboard_check(vk_right)
if d && u{
d=0
u=0
}
if r && l{
r=0
l=0
}
if moveable{
if d{
if place_free(x,y+1){
y+=1
}
else{
move_contact_solid(270,1)
}
}
if u{
if place_free(x,y-1){
y-=1
}
else{
move_contact_solid(90,1)
}
}
if l{
if place_free(x-1,y){
x-=1
}
else{
move_contact_solid(180,1)
}
}
if r{
if place_free(x+1,y){
x+=1
}
else{
move_contact_solid(360,1)
}
}
}
if (d or u or l or r){
moving=1
}
else{
moving=0
}
if moving{
image_speed=0.3
}
else{
image_speed=0
}
Dayjo: I set the message icon to GM6, please remember to do this next time.