Create different tiles for top, sides and corner

Get help using Construct 2

Post » Fri Feb 22, 2013 2:34 pm

Hello Guys! o/

I'm new here and want a little help in my project. I love C2 but there is a lot o things that i dont know, and sure, i want to learn ^^

I created a project using the C2 example "Auto-Runner" and put a mario sprite on it xD. Now i want to create the floor with super mario sprites too. But i want to use different tiles for the sides of the plataform, the top (where the player is running) and the corner too. There's a tile for each one but i dont know how to create it like it is created in the Example, with just one tiled background. So i want to generate just like the example, but with diferent sprites for the sides, top and corner. Hope you guys understanded. And Sorry for my English, not my native language.



The CAPX: http://www.mediafire.com/?kusuh2bsr4c17t2Vlandak2013-02-22 17:55:43
B
17
S
3
G
1
Posts: 19
Reputation: 1,940

Post » Tue Feb 26, 2013 7:07 am

You can add the different tiles to your sprite using "edit animations" and then set the animation frame, as described nicely in this tutorial:

https://www.scirra.com/tutorials/308/cloning-the-classics-pacman

P.S. Why not make up something new instead of using Mario?
B
7
Posts: 38
Reputation: 476

Post » Tue Feb 26, 2013 1:11 pm

Thanks for the help, i will try it!


PS: i'll not use mario.I just used the sprite a had, it's like my defaut sprite xD
B
17
S
3
G
1
Posts: 19
Reputation: 1,940

Post » Tue Feb 26, 2013 1:59 pm

Hey Mike, the tutorial was really nice, i loved it!

But thats no what i'm looking for. I want a way to generate random blocks/floor with the diferent tiles in the right place, just like the example.

But the tutorial was a great help for me too!
B
17
S
3
G
1
Posts: 19
Reputation: 1,940

Post » Tue Feb 26, 2013 9:21 pm

Do you mean you want a platform which is say 4 blocks long to be made up of LEFT-MIDDLE-MIDDLE-RIGHT block? If so you can use a loop from 1 to platform length if/then type statements to determine which kind of block to show based on how long the platform is
loopindex = 1 then create "LEFT" block
loopindex >1 and < platform length then create "MIDDLE" block
loopindex = platform length then create "RIGHT" block

Or did I misunderstand the question again?
B
7
Posts: 38
Reputation: 476


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 25 guests