Tutorial: CrazyRobbie's basic platformer

Post your own tutorials, guides and demos.

Post » Wed Apr 07, 2010 3:29 pm

Hello all,

while waiting for the new version of the Platform School, I just ended writing a very simple tutorial for a basic platformer.

I uploaded a zip file containing step-by-step instructions in pdf, a cap file of the final game and some graphics for sprites (borrowed from the Platform School tutorials) here:

http://programandplay.com/tutorials/Cra ... torial.zip

The game was developed in version 0.99.62 and seems to run as expected :P but I actually noticed some problems in the collision detection between sprites which doesn't seem to register every time it happens, anyway I read in other posts that there are known issues there that are currently being fixed, so that may be the reason?
In any case, I'd be happy to get some feedback: do you think it is clear enough? can it be useful? are there any mistakes? how can it be improved? In one word, anything! :wink:

Cheers!
Roberto
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Wed Apr 07, 2010 5:08 pm

Hi :)

I'm glad you are interested in making tutorials for Construct, and your tutorial is very well written. However, I would appreciate it if you did not use my graphics. People have asked in the past if they could use the Platform School sprites for their own projects, and the answer is always no. If you could remove this and re-release it with your own graphics, I would appreciate it greatly.

Also, a few technical flaws I've noticed with your tutorial:

1. You have no proper collision mask for the player sprite. This results in being able to hang off of the edge of a platform by pixels sticking out like so:



2. The Charlie and Doomba sprites are both set to Solid, which means they will not collide consistently. Collision happens when two sprites overlap, and under normal circumstances a Platform Behavior object will not overlap with a Solid.

3. Your ladder climbing uses a set pixel amount per tick which is not framerate independent. You should use the Platform Behavior's "Set Y Component of Motion" action, or TimeDelta.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Apr 07, 2010 8:47 pm

Note: The collision mask bug should not be present in version 0.99.62.
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Post » Thu Apr 08, 2010 12:44 am

Hello Deadeye,

sure, I'll look for other sprites as soon as I can. Since this was not meant to be a "game" but just a free tutorial, I took the freedom of re-using them to speed up the development (I can't draw!), sorry.

Thanks also for the other comments.

Cheers,
Roberto
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Thu Apr 08, 2010 12:48 am

Damage is kind of wonky in .99.84 so I hope the next update fixes the problem
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Thu Apr 08, 2010 12:52 am

Very nicely done tutorial. Looking forward to many more. :D

On the graphics front, there are a bunch of places on the internet that offer free for non-commercial use graphics (assuming you give citation). I'm sure you will find plenty of free graphics to re-work the tutorial.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Thu Apr 08, 2010 11:29 am

Hi,

I updated the tutorial with a new set of graphics. The above link now refers to the new file.

Now I'll look at improving the collision detection...
Anyway, the sprite hanging at the side of the platform wasn't a bug but a... feature (as programmers love to say :P )! I noticed it happened with the "per pixel" collision (while it didn't happen with the "bounding box" property) and I thought it was funny to have the sprite hanging there and trying to climb up but I lacked a cute animation for that! :wink:

Cheers!
Image Image Image
B
82
S
21
G
8
Posts: 163
Reputation: 11,516

Post » Thu Apr 08, 2010 3:42 pm

[quote="roberto":1og51sbq]I updated the tutorial with a new set of graphics.[/quote:1og51sbq]

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


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests