Correcting Overlapping Solids In-Game

0 favourites
  • 2 posts
From the Asset Store
Instantly Create Rogue-like Adventures with just 1 Layout! Include this IGM into any existing game.
  • Hello! In my game there are certain points where the player can move at very high speeds using the bullet behavior. The result of this is that sometimes the player will move so fast that they'll partially phase right through a solid wall and get stuck in the middle.

    I've accepted that there's not much I can do about this except change the speed... or perhaps have the game correct itself? Like if the player gets stuck in the floor or a wall, I could just set their position to be right above or behind the solid so they're no longer stuck.

    It sounds good in theory, but after several attempts, I can't seem to make that work correctly. Is it possible? And if it is, where would be a good place to start in terms of coding?

    Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If the enemy hits the wall just set the X or Y like -100 or +100 from the wall?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)