How To Make My First Platformer

Discussion and feedback on Construct 2

Post » Wed Nov 09, 2011 11:13 pm

vtrix,

how do you move your player to the main layer?
silly question? :)

B
4
G
1
Posts: 15
Reputation: 580

Post » Wed Nov 09, 2011 11:30 pm

Right click on the sprite.
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Thu Nov 10, 2011 5:31 pm

Gotcha. Then just change it in the left menu.

Alright. Here's my "cavern" with full functionality and even a few secret entrances. Now, how do I add a badguy or girl to rescue? How do I add dangerous elements like lava? Spikes? What behaviors do I give these items? Thanks!

Here's the current map: http://dl.dropbox.com/u/6990704/test4.capx

I've added lava and it "destroys" my "hero" when he touches it. Is there a way to have a one or two second pause and then have my hero reappear at the starting point?

Also, is there a simple way to create a "respawning" object?
steveg2011-11-10 18:04:10
B
4
G
1
Posts: 15
Reputation: 580

Post » Thu Nov 10, 2011 6:07 pm

heh thats funny, if you jump up to the right at start, you come above the level, it totally reminds me of mario bross, maybe this is how they found it

add behavior : bad guy sorry couldn't help myself


for life, you could have a "timer" var, on your main character, that count down when dead, to know if he's dead you could have a "death" boolean: thats says death:true

if boolean:death=true > every second substract from timer var
timer var = 0 : system restart layout

making variables = click on character en left panel

vtrix2011-11-10 18:24:32
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Nov 10, 2011 6:11 pm

Ha! That was accidental...but I DID actually but a hidden tunnel in the water on the far left so you can get out and start that section over.

So, how can I have my hero respawn now?
B
4
G
1
Posts: 15
Reputation: 580

Post » Thu Nov 10, 2011 6:16 pm

And how do I make my monsters move in a platformer environment?

If I haven't said THANKS already...THANKS!!!


B
4
G
1
Posts: 15
Reputation: 580

Post » Thu Nov 10, 2011 6:31 pm

[quote]

  • Platformer behavior

    • Get player velocity? - LINK
    • Climbing a ladder - LINK
    • Character not running smoothly - LINK
    • Jumping into and destroying blocks - LINK
    • Spawn and jump over ennemies (mario-like) - LINK
    • An example of double jump - LINK
    • Grabing the edges of a platform/wall - LINK
    • Hookshot with the mouse - LINK
    • Managing speed and animation - LINK
    • Ennemy control with platformer behavior - LINK
    • Player (platform behavior) and Physic (world objects)
    • - LINK
    • Mario style: jump on top of ennemy to kill it - LINK
    [/quote]
    From the "How do I FAQ"

    Search results for "Spawn" in "C2 general" section
    Search results for "Spawn" in "How do I" section
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: 7,000
Reputation: 57,805

Post » Thu Nov 10, 2011 7:17 pm

Ok. I looked at the links, but they're not doing exactly what I'm looking for. I'm looking to have monsters move back and forth (sort of mario bad guys minus the jumping). How do I do that?

Thanks.

Here's the capx:
http://dl.dropbox.com/u/6990704/test5.capx
B
4
G
1
Posts: 15
Reputation: 580

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests