How to properly implement uneven floor for platformer?

Get help using Construct 2

Post » Thu Dec 17, 2015 2:34 am

What I'm doing now is placing diagonal and horizontal ground solids together to make fields and hills, but I have problems such as falling through the ground when I walk past an imperfect transition from platform to platform. Is there a better way to do this? Thanks!
B
8
S
2
Posts: 27
Reputation: 610

Post » Thu Dec 17, 2015 9:36 am

Are they Sprites?

If they are then, did you check the collision polygon in the Image Editor if the polygons are spreading across the width of the sprite?

Not covering the entire width of the sprite sometimes cause this, especially when the sprites are moving in platformer games or etc.

If you want to make sure that the player has more chance of not falling -- in the image editor --> Collision Polygons (left-bottom side of the image editor) --> right click one of the dots and select set to bounding box...
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
55
S
17
G
90
Posts: 1,111
Reputation: 59,145

Post » Thu Dec 17, 2015 12:39 pm

chadorireborn wrote:Are they Sprites?

If they are then, did you check the collision polygon in the Image Editor if the polygons are spreading across the width of the sprite?

Not covering the entire width of the sprite sometimes cause this, especially when the sprites are moving in platformer games or etc.

If you want to make sure that the player has more chance of not falling -- in the image editor --> Collision Polygons (left-bottom side of the image editor) --> right click one of the dots and select set to bounding box...


Yeap, the sprites are invisible perfect rectangles (I used the default). The main problem seems to come from the transitions between the platform boxes. For eg, a horizontal rectangle on the left and an adjacent diagonal rectangle to the right of it. I'm guessing I might need to align the corner pixels of the transition together but it's difficult to do so on a large scale so I'm curious how you guys handle uneven platform creation
B
8
S
2
Posts: 27
Reputation: 610

Post » Thu Dec 17, 2015 2:02 pm

I myself am making a platformer game and I'm about to finish it this month but I did not experience this situation since I always use the option in the view tab "Snap to Grid" that automatically combines two Tiles or sprites together. I think that must be the reason.

https://onedrive.live.com/redir?resid=A ... hoto%2cpng
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
55
S
17
G
90
Posts: 1,111
Reputation: 59,145

Post » Thu Dec 17, 2015 3:19 pm

Message: Nitari is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
chadorireborn wrote:I myself am making a platformer game and I'm about to finish it this month but I did not experience this situation since I always use the option in the view tab "Snap to Grid" that automatically combines two Tiles or sprites together. I think that must be the reason.


Hmm I tried using the grid and zooming into my transitions to try to align them, albeit with some difficulty. I'm now caught between the decisions of having a "safety over-extension as such

Image


or having a perfect pixel-to-pixel overlap at only the corners?
B
8
S
2
Posts: 27
Reputation: 610

Post » Fri Dec 18, 2015 2:00 am

Bump
B
8
S
2
Posts: 27
Reputation: 610

Post » Fri Dec 18, 2015 2:06 am

Make pieces that fit together like a puzzle. Or is the overlapping some kind of art style?
B
45
S
15
G
72
Posts: 1,966
Reputation: 42,812

Post » Fri Dec 18, 2015 3:42 am

@plinkie Hmm I'm trying to find the best way to create the fall through platforms for the ground (the floor is only the background image, I place invisible fall-throughs on it)

But its difficult to connect 2 different fall throughs that are different in angle without creating "gaps" that may cause players/monsters to fall when they unsuccessfully walk from one to the other
B
8
S
2
Posts: 27
Reputation: 610


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests