Gravity Mario Example

Show us your completed creations made in Construct 2

Post » Sun Mar 24, 2013 1:38 pm



I created an example game using Mario as a base. It shows how to set up different gravities, platform behavior, and even really simple enemy AI.
You can play it here: Gravity Mario

You can download the capx file and learn from it here: http://www.datafilehost.com/download-694a819f.html

I hope this example is helpful, and I would love to hear any feed back or critiques! Enjoy
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Post » Tue Mar 26, 2013 7:05 am

@GTGJon
Thanks a lot for this!
B
70
S
11
G
6
Posts: 18
Reputation: 9,152

Post » Tue Mar 26, 2013 9:20 am

@Tedg
You're welcome! ^_^
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Post » Sun Apr 14, 2013 4:06 am

I'm trying to emulate the side scrolling Mario games as best I can and the difficulty that I'm encountering is how to mimic the jump control. In the real Mario games, the long you hold down the button, the higher he jumps. I see you didn't bother to incorporate that into your game. I wonder if there are examples of someone doing that.
B
10
S
3
Posts: 102
Reputation: 1,888

Post » Sun Apr 14, 2013 4:07 am

Just set a variable that increases each tick the jump button is held down, and if it gets to a certain value, make the jump go higher?
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sun Apr 14, 2013 11:43 am

to simulate this kind of jump, when the player release the jump button I set the vectorY property of the platformer behavior to "vectorY / 2". It's perfectible because it's not very smooth but it's a good startMimiste2013-04-14 11:45:48
B
12
S
3
G
4
Posts: 62
Reputation: 3,408

Post » Sun Apr 14, 2013 1:51 pm

mimiste , That is a bad way of doing stuff ... I would recommend excal's way of doing it ...
B
2
Posts: 2
Reputation: 381

Post » Sun Apr 14, 2013 2:21 pm

why ? That's two different kind of jump. Excal's method is, if I understand, something like "you load the jump by pressing the button, and when you release it, you jump"
Mine is "you press the button and jump instantly, when you release, you stop mid air and begin to fall"
Both are good depending the kind of jump you want to give to your game
B
12
S
3
G
4
Posts: 62
Reputation: 3,408

Post » Sun Apr 14, 2013 2:49 pm

My way of doing stuff ... I guess ...

Jump Stuff ... Er ... No name
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Mon Apr 15, 2013 1:26 pm

@farmerdwight
In mine if you run he jumps higher, and that is how it was in Super Mario Bros. 3. I have it that he jumps quite low when not moving to a certain speed, and once he has accelerated to this speed his jump is increased.
B
17
S
5
G
2
Posts: 86
Reputation: 4,343

Next

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 3 guests