How do I make a tutorial dialogue

Get help using Construct 2

Post » Wed Aug 05, 2015 9:53 am

Hello guys.

I am making a platform game and before the first time you get to see something new like an item or mechanic I want a small tutorial text to appear.

My question is how can I make this in an efficient way. I am a beginner with C2 and this is what I have in mind.

I thought of making a character sprite to pop on in the screen with a dialogue box and the information needed. So when the player X between the X distance I want the tutorial to pop up the character sprite and the text, depeding on which item or mechanic needs to be explained. I thought of doing this in a layer called tutorial and set paralax to 0.0 place the image and set to invisible.

My question is, is this a proper way to do it or should I be trying to do it in a different way?

Here's an example of what I would like to do. Making the "tutorial" come up right in front, leaving the game behind in a second place.

Image
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Wed Aug 05, 2015 12:32 pm

I always place these kind of text boxes outside the layout with a deactivated fade behaviour and implement the following event:

system / trigger once while true
system / distance(player.x, player.y, object.x, object.y) <= whatever
\\> textbox -> set position to element.x, element.y -100 (makes it appear above the element)
wait 2.0 seconds
activate fade behaviour (destroy after fade out)

This is one event with two conditions. Trigger once while true prevents it from resetting the textbox every tick.
B
10
S
4
G
2
Posts: 117
Reputation: 1,872

Post » Wed Aug 05, 2015 2:21 pm

While I was waiting for a reply came up with a different idea. Make a layer with a design I am pleased set invisible and once I want it to show up I ll set layer to visible with the text I want and then back to invisible. This way I can make it look better graphic-wise than just popping up a textbox within the screen.

Does it sound good?

Also thanks for your reply, I appreciate it very much
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Thu Aug 06, 2015 10:37 am

I don't see why it would look better. You set the layer visible which makes the text box pop up. What would be the difference?
B
10
S
4
G
2
Posts: 117
Reputation: 1,872

Post » Thu Aug 06, 2015 10:41 am

liquidmetal wrote:I don't see why it would look better. You set the layer visible which makes the text box pop up. What would be the difference?


The difference would be I can actually make a full design with different objects to pop up at once instead just one text box.
B
14
S
5
Posts: 248
Reputation: 1,705

Post » Thu Aug 06, 2015 11:20 am

With the method I described you can pop up as many text boxes as you want. It isn't restricted to one box. Also I thought you wanted the specific boxes to appear when the player has reached a certain distance to a specific object. When they all are supposed to appear at once you don't need the distance calculation.
B
10
S
4
G
2
Posts: 117
Reputation: 1,872


Return to How do I....?

Who is online

Users browsing this forum: stevenode and 10 guests