Tutorial: Platform School

Post your own tutorials, guides and demos.

Post » Sun Feb 01, 2009 3:08 am

[quote="GMG":j5w6mghv]It doesn't actually say anywhere in the interface - "Sprite" - when you select a sprite, or whatever.[/quote:j5w6mghv]

Ah, good point. Perhaps there should be a "Type" field in the Common properties. Sounds like a feature request to me :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Feb 01, 2009 1:16 pm

Good idea, added it :).
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sun Feb 01, 2009 6:08 pm

Sweet set of tutorials. I definitely learned a few new things. Thanks man!
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sun Feb 01, 2009 7:55 pm

Very nice tutorial. I have one question though:



Why doesn't Charlie keep moving horizontally after I stop pressing the up/down buttons?
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Sun Feb 01, 2009 8:30 pm

I assume you mean "Why do you have to set the vertical speed to 0 to make him stop, but not the horizontal speed?"

And, uh... I don't know. If I were to venture a guess... it seems to me that the horizontal speed respects the Deceleration values, but vertical speed doesn't (because, well... it doesn't have any). So if you don't manually set the vertical speed to 0, he just keeps climbing after you let go, but where horizontal movement is concerned he comes to a stop. At least, I think that's why.

Maybe David or somebody has a better answer.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 02, 2009 4:47 am

I only learned about construct a couple of weeks ago so i might sound like a noob, but how do you get him to jump when you press "z". I went through all the tutorials and i couldn't find the event to make him jump when you press "z". Mine only jumps when you press up and i can't seem to change it. Somebody help me please.
B
5
G
3
Posts: 12
Reputation: 950

Post » Mon Feb 02, 2009 5:43 am

[quote="Hemlock":39mdfbkq]I only learned about construct a couple of weeks ago so i might sound like a noob, but how do you get him to jump when you press "z". I went through all the tutorials and i couldn't find the event to make him jump when you press "z". Mine only jumps when you press up and i can't seem to change it. Somebody help me please.[/quote:39mdfbkq]

Application properties... scroll to the bottom. There's a "Controls" section there. You can change the default key that a control uses in that section.

Don't rename the "Jump" control to something else though... You can change the key to whatever you want, but if you rename it then the Platform behavior will revert to the default key, which is Shift.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 02, 2009 6:34 am

Thanks, I completely understand now. Also your platform tool is really helpful.
B
5
G
3
Posts: 12
Reputation: 950

Post » Mon Feb 02, 2009 8:57 am

[quote="deadeye":23v9y073]Don't rename the "Jump" control to something else though... You can change the key to whatever you want, but if you rename it then the Platform behavior will revert to the default key, which is Shift.[/quote:23v9y073]

Which is rather weird and should be treated like a bug. In general, a reworked control scheme with multiple player inputs and some more default values would be really awesome. Like, 'Attack' is something that should be in there by default. If you're new to the app, you'll probably spend hours until you figure out how Construct is handling this issue right now (which is quite random, since I can rename Move Left and Move Right, but it has hick-ups with Jump) - which can be rather annoying.
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

Post » Mon Feb 02, 2009 9:42 am

Well, "Attack" isn't something that's necessary for movement, which is what the behaviors basically do. You can create a completely new control for "Attack" and set it to whatever key you like, and call on that control by it's name with events... just as I did in lesson 5 with the "Action" control.

As for renaming the "Move Left" and "Move Right" keys... well, as long as you're still using the arrows for movement, that's fine because the Platform behavior is defaulting to the arrow keys for "Move Left" and "Move Right."

However, if you change the Move Left and Move Right keys to A and D, for example, then rename the controls "Go Left" and "Go Right," for example, then A and D won't work to control the platform movement. Since the controls have been renamed, the Platform behavior reverts to the original "Move Left" and "Move Right" controls, which are the arrow keys.

So you can change the name of the of the control, or you can change the key for the control, but not both.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

PreviousNext

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests