How do I make platform character closer?

Get help using Construct 2

Post » Fri Feb 03, 2012 2:27 am

How do I make my character in a platform game stand closer to the platforms? As you can see he is kind of floating there.

As well (if its easy to explain) how can I make my character walk? I have all the pivots and such set up so he can walk but I can not figure out how to get him to move without just sliding.
B
8
S
4
G
3
Posts: 69
Reputation: 2,556

Post » Fri Feb 03, 2012 4:13 am

Usually posting a CAPX for us to look at is a good idea. But it looks like when you imported your sprite into the game there was extra blank space around the image. double click on the image and click the icon that gets rid of that extra space. Or in the same editor, check your bounding box to make sure the bottom of the bounding box is lined up with the feet.
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Feb 03, 2012 4:25 am

You also probably should have a look at Ashley's how to make a platform game tutorial, it should answer your question about setting animation/making the character walk.
It might even help you to correct what you may have been doing wrong with your current character's animation frames.Kyatric2012-02-03 04:27:35
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Feb 03, 2012 4:28 am

And that is why your my favorite moderator Kyatric!   You know where everything is
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Feb 03, 2012 4:32 am

I followed ahsley's tutorial (though it is unfinished) it does not explain walking, it explains bobbing (which I already have him doing).
B
8
S
4
G
3
Posts: 69
Reputation: 2,556

Post » Fri Feb 03, 2012 4:45 am

Usually walking has to do with animation and importing multiple sprite frames for one sprite object. This involves designing multiple images for one sprite outside of C2 and importing them into an animation within C2. Im sure there is some tutorial in here that covers this...
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Feb 03, 2012 5:00 am

I have the frames all created, I am just not sure how to import them and assign them so that they only play when he is walking. I did import them earlier and though they are slightly choppy (I am new) they worked, but they played continuously not just when he walked.
B
8
S
4
G
3
Posts: 69
Reputation: 2,556

Post » Fri Feb 03, 2012 5:10 am

ON Startup stop the animation for that sprite, then create event to see if the sprite is moving and play animation. another event will be inverted (if sprite not moving) the stop animation. I don't have an example capx to show you, but that is the theory. Can you post your capx to dropbox or somewhere so we can look at it and give better help?
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Feb 03, 2012 5:16 am

Check out the CAPX downloads from this chat.
It may give you ideas on how it works. There are probably easier ones to look at that do the same thing. http://www.scirra.com/forum/problem-with-animation-against-walls_topic48606_post305245.html?KW=walking+animation#305245
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Fri Feb 03, 2012 5:33 am

You can also check velojet's tutorial I think it does show the "missing" steps to have an animated controlled character.

You can also take a look in the how do I FAQ under the sections "platformer" (mechanics and behavior), you should find what you need.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Next

Return to How do I....?

Who is online

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