Platform Player Falling through the floor?

Just started using Construct 2? Post your questions here

Post » Sun Sep 21, 2014 4:07 pm

I'm still relatively new to Construct 2, but I'm quite sure I've done everything possible to ensure this doesn't happen. My player keeps falling through the floor! The floor has both solid & physics (immovable enabled) behaviors. No matter which is on or off, this still happens.

I have a unique function with the player (a spider) who, when jumping into a web that you shoot, the control changes from platform to 8 direction. But the events should all be built to accomodate this perfectly, I don't understand. If anybody wants to help, I'd be very appreciative.

I'll upload what I have of the game so far, if anybody wants to take a look at it. Thank you!

Objective->

Kill a fly with venom & then walk over & touch it's dead body to replenish your life meter (which is constantly depleting.)

Controls ->

WASD - Move
Left Click - Shoot Venom
Right Click - Shoot Webs

:)
You do not have the required permissions to view the files attached to this post.
Last edited by KyleSousDor on Sun Sep 21, 2014 5:16 pm, edited 3 times in total.
B
4
Posts: 27
Reputation: 254

Post » Sun Sep 21, 2014 4:42 pm

when exactly your character falling through the floor?
I've played your game, and never fell down (i think :shock: )
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
2
Posts: 291
Reputation: 6,666

Post » Sun Sep 21, 2014 4:44 pm

Perhaps my computer is loading the events in a messed up order due to processing problems? Is that a thing?
B
4
Posts: 27
Reputation: 254

Post » Sun Sep 21, 2014 4:44 pm

I will try my game on a faster computer, thank you.
B
4
Posts: 27
Reputation: 254

Post » Sun Sep 21, 2014 4:49 pm

To answer WHEN i fall through the floor, it's usually when I fall from a great height/have a fast falling speed.

Yes i've tried and every time I play the game I wind up falling through the floor. Anyone know if this is a common issue?
B
4
Posts: 27
Reputation: 254

Post » Sun Sep 21, 2014 4:55 pm

well, I dont know.
I suggest you to replace some of your "every tick" conditions, because it's not very effective, and wasting your memory ("later if your target is mobile"),

for example number 34,
for "set score",you can insert it on event number 24 & 25.
and "set ammo" on event number 24 & 38.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
2
Posts: 291
Reputation: 6,666

Post » Sun Sep 21, 2014 4:55 pm

oh, ok. I'll try it again.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
2
Posts: 291
Reputation: 6,666

Post » Sun Sep 21, 2014 5:14 pm

Alright so I fixed the "every tick" events, which probably help the memory, but I'm still having the problem. Another point to make is that occasionally the web & venom bullets go through the walls/platforms as well, so I think the problem is definitely with the ground/wall/platform objects. Does Z order play a part in this?
B
4
Posts: 27
Reputation: 254

Post » Sun Apr 17, 2016 5:16 pm

its your collision points i had the same problem , then i read an article about how they had the same issues back in the 90s with 2d games , try adding more collision points have at-least 6 and shape them like a hexagon or octagon as best you can with a diamond like V shape at the bottom , think of it like this a ball will bounce and roll off objects better than a square , a square base and a square object will collide and jam more
B
5
Posts: 1
Reputation: 227

Post » Sun Apr 17, 2016 5:50 pm

But don´t go over 9 collisions bcuz it can cause lagg, especially if it´s a mobile game.
Burry me with my empty hands sticking out the ground, so that all can see, that the one who had the world on his hands, died with them empty.
B
19
S
4
G
4
Posts: 133
Reputation: 3,070

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest