Quantcast
Channel: Tech Support
Viewing all articles
Browse latest Browse all 1725

platformer issues

$
0
0
i need help with my code bc when the character fall it hits the platform and falls into the void but it collides with the left/right sides of the walls. this is my step code
GML:
up_key = keyboard_check(vk_up);
down_key = keyboard_check(vk_down);


yspd = (down_key - up_key)*Move_spd;

if yspd = 0
{
  if xspd > 0 {face = RIGHT};
  if xspd < 0 {face = LEFT};
}
 if xspd > 0 and face = LEFT {face = RIGHT};
 if xspd < 0 and face = RIGHT {face = LEFT};
if xspd = 0
 {
  if yspd > 0 {face =...
platformer issues

Viewing all articles
Browse latest Browse all 1725

Trending Articles