Correcting Overlapping Solids In-Game

Get help using Construct 2

Post » Thu Mar 28, 2013 8:55 pm

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!
B
16
S
2
G
1
Posts: 156
Reputation: 2,112

Post » Fri Mar 29, 2013 5:51 pm

If the enemy hits the wall just set the X or Y like -100 or +100 from the wall?
B
10
S
1
Posts: 26
Reputation: 1,007


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas, signupdemo and 0 guests