Tutorial: Platform School

Post your own tutorials, guides and demos.

Post » Mon Jan 19, 2009 5:38 am

Deadeye, these tutorials are fantastic. Well done, and thanks! They're sure to help a lot of people out.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Jan 19, 2009 7:21 am

Don't worry table, I've wondered where the text was too. Although I confess I haven't performed a thorough search ... at least not lately.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Mon Jan 19, 2009 2:16 pm

The text for the textboxes are in private variables attached to the woodSign objects. :P

When you look at the events for the signs, the command that gives the textbox its text is the "messageText: Set Text to woodSign.value('signText')" line, which as you can see, grabs the text from the value of the 'signText' private variable associated with the woodSign.
B
1
G
4
Posts: 7
Reputation: 1,039

Post » Mon Jan 19, 2009 2:18 pm

But when I try to view the content of that variable for a randomly picked sign it seems to be blank.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Mon Jan 19, 2009 2:30 pm

You're clicking it in the layout editor, right? And if you click the Edit Variables: Add/Edit, that edits the variables of all instances of your object instead of just the one you clicked on, so that's why it's turning out blank. Just click on a woodSign object in the layout editor, then in the properties bar go to the private variables section, and next to signText variable it should say the text. You can click on the text to edit it just for that sign.
B
1
G
4
Posts: 7
Reputation: 1,039

Post » Mon Jan 19, 2009 2:45 pm

Okay, wow. It's like a light just clicked on. I don't know how I didn't see it before. Thanks.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Mon Jan 19, 2009 3:38 pm

Sorry I missed the whole conversation :P. Yes, I stored the sign text in a variable for each sign. In restrospect maybe I should have come up with a different solution... they're kind of a pain to edit that way. Oh well, live and learn.

And I guess I didn't take repeated viewings into account. I suppose it would be a bit tedious to play through again if you just wanted to check something really quick. Perhaps I'll whip up a readme for each one that has all the sign text numbered in a .txt file or something that you could download separately if you want.

[quote="table":24cx19jz]Thanks very much for the Platform School lessons...

I've found lessons four and five a bit out of my league at the moment.[/quote:24cx19jz]

You're welcome :). And if there's anything you'd like me to cover in more detail, let me know.

[quote="table":24cx19jz]Looking forward to seeing Charlie swim next lesson.[/quote:24cx19jz]

Well, the next lesson might be a while. I haven't yet drawn Charlie's swimming or climbing sprites :P. I also have to draw a ladder, but I already have some animated water sprites I can scrap from an older project (the same project I took all the ground tiles from... it's not going to get finished, so I might as well put them to use).
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Jan 19, 2009 10:42 pm

[quote:32op0j0x]Perhaps I'll whip up a readme for each one that has all the sign text numbered in a .txt file or something that you could download separately if you want.
[/quote:32op0j0x]

Yes Please :P
B
4
G
3
Posts: 41
Reputation: 982

Post » Tue Jan 20, 2009 9:32 am

Great lessons, theyve thought me things I didnt even know I was missing. However, and Im sorry to say this, Ive found some problems in lesson 4 and 5. In lesson 4 everything works fine, except the moving platforms. For some reason Charlie seems to have higher speed than the platform and is there fore being pushed of. Strangely enough does this problem not occur in lesson 5. Any changes, perhaps? My problem in lesson 5 is instead that I cant run and jump to the right, just to the left. I do know that this is a keyboard issue, but at least I think people should be aware of it, and the real issue in this case was that I wasnt able to change the controls in Construct. Does any one know why?
B
2
G
4
Posts: 16
Reputation: 1,082

Post » Tue Jan 20, 2009 10:11 am

Whoops! Looks like you got the old version before Construct v0.98 came out. It has old code that isn't necessary any more because moving platforms are now automatically recognized by the Platform behavior. So either you downloaded it before I made the update, or you got it off the wiki (which doesn't appear to have been changed yet).

You need the version of Lesson 4 in the first post:

viewtopic.php?f=8&t=2154

And I'm afraid I don't know what you mean about Lesson 5. I can move to the right just fine. Is anyone else having this problem?
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 1 guest