Platform Game Questions

Get help using Construct 2

Post » Mon Aug 13, 2012 4:13 am

Hi guys, I'm trying to create my first platform game.
I'm starting to make the character animations and I would like if it is possible to change the default (JUMP) up arrow key action.

I would like to make my char jump when up arrow is pressed, but I want him jumping using the animation that I did, I dont want the "default jump".

Is it possible?
Thanks in advance!
B
3
Posts: 7
Reputation: 339

Post » Mon Aug 13, 2012 8:48 am

Yes it is possible.

Checked this beginner's tutorial about platform games, it should answer your first questions.

Later, you can check the how do I FAQ which lists lots of examples of platform and other type of games mechanics.
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,998
Reputation: 57,791

Post » Mon Aug 13, 2012 6:30 pm

Oh man! Thanks a lot!
B
3
Posts: 7
Reputation: 339

Post » Tue Aug 14, 2012 12:19 am

Hey Kyatric, I found many useful informations on those links but I'm afraid I could not locate what piece of text is talking about replacing the UP ARROW key function. I meant, how to clear the jump moviment of this key. Do you know how can I do it? Thanks again!
B
3
Posts: 7
Reputation: 339

Post » Tue Aug 14, 2012 12:44 am

Set the property "Use default controls" to "No" in the platform behavior properties.
Add a keyboard plugin, and use the events "on key pressed" or "on key is down".

It's explained/showed in the pages 4 and 5 of the tutorial I previously linked.

When you use those condition, you use then the action "Simulate control" accordingly to the key pressed. (ex: left key is down => Simulate control Left)

You then use the "simulate control: Jump" for the key of your choice.Kyatric2012-08-14 00:46:15
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,998
Reputation: 57,791

Post » Tue Aug 14, 2012 12:19 pm

Oh nice!
Allow me to annoy you again...
How could I make my char jump lower or higher according to how much time the "jump key" was pressed?

I mean, the more you press the "jump key" the higher char will jump...like super mario game.


Thanks!
B
3
Posts: 7
Reputation: 339

Post » Tue Aug 14, 2012 12:38 pm

Hey, I was actually looking at this myself recently.

Be sure to always check the How Do I FAQ as it's a great resource and has a ton of questions like this that have already been answered.

Here's the specific link you're looking for: Varied power of jump

Hope this helps
B
12
S
1
Posts: 8
Reputation: 1,119

Post » Tue Aug 14, 2012 12:43 pm

Wow purplenurple, that's exactly what I needed! Thank you very much!
B
3
Posts: 7
Reputation: 339

Post » Tue Aug 14, 2012 12:53 pm

You're very welcome.
B
12
S
1
Posts: 8
Reputation: 1,119


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas and 0 guests