03-24-2010, 02:49 AM
I am using Game Maker 8.0 unregistered after PACMAN jumps and lands he gets stuck regardless except when I jump but if I try left, right especially on the right and left and top side PACMAN does not move as he is supposed to.
Here is status' (ctrl+F) PACMAN obj_wall ParentSolidObj
Information about object: PACMAN
Sprite: sprite0
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Collision Event with object obj_wall:
COMMENT: comment
Keyboard Event for <Left> Key:
set the horizontal speed to -5
Keyboard Event for <Right> Key:
set the horizontal speed to 5
Key Press Event for A-key Key:
execute code:
if ( !place_free(x,y+2) )//for Game Maker 8 on top is +
{
vspeed = -10;
gravity = 0.5;
}
if ( !place_free(x+2,y) && keyboard_check(vk_left) && !keyboard_check(vk_down) )//for Game Maker 8 x+ on right side
{
x -= 14;
vspeed = -5;
}
if ( place_free(x-2,y) && keyboard_check(vk_right) && !keyboard_check(vk_down) )
{
x += 14;
vspeed = -5;
}
Key Press Event for J-key Key:
jump to the start position
Key Release Event for <Left> Key:
set the horizontal speed to 0
Key Release Event for <Right> Key:
set the horizontal speed to 0
Information about object: obj_wall
Sprite: sprite9
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: ParentSolidObj
Mask: <same as sprite>
Information about object: ParentSolidObj
Sprite: <no sprite>
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Here is status' (ctrl+F) PACMAN obj_wall ParentSolidObj
Information about object: PACMAN
Sprite: sprite0
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Collision Event with object obj_wall:
COMMENT: comment
Keyboard Event for <Left> Key:
set the horizontal speed to -5
Keyboard Event for <Right> Key:
set the horizontal speed to 5
Key Press Event for A-key Key:
execute code:
if ( !place_free(x,y+2) )//for Game Maker 8 on top is +
{
vspeed = -10;
gravity = 0.5;
}
if ( !place_free(x+2,y) && keyboard_check(vk_left) && !keyboard_check(vk_down) )//for Game Maker 8 x+ on right side
{
x -= 14;
vspeed = -5;
}
if ( place_free(x-2,y) && keyboard_check(vk_right) && !keyboard_check(vk_down) )
{
x += 14;
vspeed = -5;
}
Key Press Event for J-key Key:
jump to the start position
Key Release Event for <Left> Key:
set the horizontal speed to 0
Key Release Event for <Right> Key:
set the horizontal speed to 0
Information about object: obj_wall
Sprite: sprite9
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: ParentSolidObj
Mask: <same as sprite>
Information about object: ParentSolidObj
Sprite: <no sprite>
Solid: true
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>