uneven ground

Get help using Construct 2

Post » Wed Dec 26, 2012 2:46 pm

Hello,

I got a quick question.

How do I accomplish uneven ground or hills? When I place a tiledbackground, it is a square and 100% perfect even.

thanks for your help!
B
8
S
2
Posts: 110
Reputation: 1,463

Post » Wed Dec 26, 2012 7:45 pm

Could you please expand on that. Are you refering to a 2d platformer? a top down map? isometric?

For such things an example image is always a fantastic reference to use :)
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Wed Dec 26, 2012 7:57 pm



It is a 2D Platformer.

How to create uneven ground. And how to avoid crappy graphic look, when the Player is going up the hill?
B
8
S
2
Posts: 110
Reputation: 1,463

Post » Wed Dec 26, 2012 11:34 pm

something tell me you must use a canvas colision per pixel
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Wed Dec 26, 2012 11:36 pm

Tricky issue. In my game I used lots of stretched and rotated rectangles to make up the ground. Then I put the aesthetic features on top of that.

As for uphill graphics, that's hard to answer as the player's walking animation dictates how 'crappy' it will look.sqiddster2012-12-26 23:40:14
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Dec 27, 2012 2:41 am

Good question... I'm thinking using invisible collision masks (invisible sprites?) with the collision polygon set to your desired shape and then, as sqiddster indicated, put the pretty stuff on top.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764

Post » Thu Dec 27, 2012 4:01 pm

[QUOTE=Space Ape] Good question... I'm thinking using invisible collision masks (invisible sprites?) with the collision polygon set to your desired shape and then, as sqiddster indicated, put the pretty stuff on top.[/QUOTE]

I too am up against this problem. So far, I've only been able to solve it using tons of sprites whose Opacity is set to zero.

The ideal solution would be to make a png of a hill or wall or whatever, and use that- except when I bring the png in, the player collides with the whole image. I tried going into the animation editor and changing the collision area, but it only gives you 9 vertices to play with.

I'll keep searching, but if anybody has discovered how to make the png collision map work, I would love to hear about it!
Everybody got to come out of the closet... does that mean I'm allowed to come out of the corner? Is that even funny anymore? Do parents still make their kids stand in corners when they mouth off?? These are the questions that keep me out of the really good schools.

havenisle.net
B
11
S
3
G
3
Posts: 27
Reputation: 2,695

Post » Thu Dec 27, 2012 8:10 pm

@havenrocket: I played around with an idea last night and it seemed to work. If you use tiled backgrounds, which are less resource-intensive I think, and put them into a family then set a family behavior as "solid", the moving object will treat the tiled background as a solid surface.

I was able to make a maze with tiled background wall pieces set with solid behavior and the moving object stopped on collision. It wasn't precise sometimes, but it could work with some tinkering.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764

Post » Sat Dec 29, 2012 12:46 am

I hope uneven grounds will be implemented in future releases. The problem is that when I create a tiledbackground with a ground graphic for the whole level (4000x768 for example) and I change its behavior to solid. The player sprite collides with the transparent, empty space of the tiledbackground. The engine should be able to recognize if the part of the tiledbackgrund is transparent or has actual graphics.
B
8
S
2
Posts: 110
Reputation: 1,463

Post » Mon Dec 31, 2012 2:50 am

[QUOTE=Astrosus] The problem is that when I create a tiledbackground with a ground graphic for the whole level (4000x768 for example) and I change its behavior to solid. The player sprite collides with the transparent, empty space of the tiledbackground. The engine should be able to recognize if the part of the tiledbackgrund is transparent or has actual graphics.[/QUOTE]

Exactly. I was hoping I wasn't the only one scratching their heads at this.

@Space Ape - Tiles are as effective as using dozens of the same sprite- the blank space of the png still causes a collision.
Everybody got to come out of the closet... does that mean I'm allowed to come out of the corner? Is that even funny anymore? Do parents still make their kids stand in corners when they mouth off?? These are the questions that keep me out of the really good schools.

havenisle.net
B
11
S
3
G
3
Posts: 27
Reputation: 2,695

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests