• Advertisement

Archived

This topic is now archived and is closed to further replies.

Character jumping dilemna....

This topic is 5844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having a problem getting my character to go down when it reach the edge of a platform tile. If the player press jump and it did went ove the tile, the character adjusts properly. But then the character''s y coordinate stays and doesn''t adjust when it reach the edge of the collided tile. Here''s the code that checks whether main character collides with any of the the tile onscreen. void Tile_Collision() { for( temp=0;temp<2;temp++) //checks the tiles { tile1.x=tilemap1[curr_page][temp][0]; tile1.y=tilemap1[curr_page][temp][1]; if(Collision_BOBS(&player_character,&tile1)) //did our character collide with the tiles { Draw_Text_GDI("TILE COLLISION!!!",168,68,0,lpddsback); if(player_character.ytile1.y) { MAX_HEIGHT=tile1.y+40; current_floor=304; jump=JUMP_FALSE; break; } } else if(player_character.x

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement