Tutorial: Platform School

Post your own tutorials, guides and demos.

Post » Sun Dec 21, 2008 5:01 am

Ah, I see. Now that I changed it to per pixel, it works perfectly. Of course, something like automatic rotation based on a slope is harder... First person to make a Sonic-style loop gets a prize! *Shot*
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Sun Dec 21, 2008 6:07 am

[quote="Drasa":1e575a04]Drasa presents: Platform School 4.5 - Slope hijack!

[url:1e575a04]http://drasa.nipponfever.net/muu/Platform%20School%204.5%20-%20Slope%20hijack.cap[/url:1e575a04]

There's still one known problem - the animation angles. How much would I appreciate if the rotation angles could be set separately from the animation angles. Because of the lack of this feature, I can't set Charlie to face the right way in slopes, cause setting the rotational angle sets the animation angle too. Ashley/Rich/Dave, would you mind implementing them separately?[/quote:1e575a04]

You can set him facing the right way... you just have to mess with the angles a little bit :P

I fixed it. Here:

http://willhostforfood.com/files3/90779 ... hijack.cap

Anyway, I'll mess around with is a bit more and if I don't come across anything buggy with it (and I haven't so far apart from the wacky angles thing) then I'll include it in a future tutorial. I'll give you credit, of course :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Dec 21, 2008 12:31 pm

Deadeye: Oh, why didn't I realise that when I was making the original version X). I solved it later, but used totally different method. Oh, and btw, thanks for the great tutorial series! I'm sure that this will help many people awfully lot on their way of learning Construct :D!

I made a version with slopes of any steepnes. This version uses some trigonometry (to calculate the position of Charlie related to the hitbox in slopes) so it goes ot of the scope of this tutorial, though. The positioning of Charlie doesn't actually look very good, but currently that's impossible to fix. It would recuire some fundamental changes to the engine. (The hitbox's corner should be able to be "inside" the slope)

However, you can easily modify the original to add slopes with different angles.

Here's the new version:
[url:19hr6m37]http://drasa.nipponfever.net/muu/Platform%20School%204.6%20-%20Slope%20hijack.cap[/url:19hr6m37]
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Sun Dec 21, 2008 4:59 pm

Woah, too much math for me I'm afraid. I'll put the first version in the tutorial if you don't mind... if I don't understand it then I can't write about it :P

But you could always make a non-platform school "advanced slopes" tutorial with all that trig stuff :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Dec 22, 2008 3:55 am

Whoa, proper rotation? Sweet! Though, I think I'll save that for if I ever make a Sonic fan-game in Construct. :D

Still, the big thing I'm eagerly awaiting is the AI lessons. Those will be fun, and only two lessons away! But we're waiting till the Christmas update, of course.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Mon Dec 22, 2008 9:03 am

I drew some slope tiles for Drasa's slopes. They don't really fit in too well but I figured I might as well do something while waiting for the next build :)

Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Dec 22, 2008 10:45 am

Haha, maybe he has some kind of gravity boots :D

If 45 degrees looks too weird, maybe you could make 26.57 degree slopes? One pixel up, two sidewards. It should look more normal :D
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Mon Dec 22, 2008 5:56 pm

Eh, that would just mean drawing more tiles :P. I'll leave it. It suits the purpose of the tutorial just fine.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Dec 22, 2008 5:58 pm

[quote="deadeye":36mpyq27]
As far as a level editor is concerned, I agree that it wold be good to have a tutorial that teaches how to make one. However, that's more of an advanced project so I won't be including how to make one in this series I'm afraid. This series is pretty much aimed at beginners.[/quote:36mpyq27]

I actually working on a level editor right now.. Maybe Ill write a tut on how to do the loading and saving i did for it...
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Wed Dec 24, 2008 8:01 pm

WARNING!
Since Construct v0.98 was released a lot of the information in these tutorials is obsolete. I'll be rewriting them all to compensate for the new features. Will post an update when it's done, probably not until after the new year though...

Thanks for your patience :)
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