How do I keep text on screen when moving?

Just started using Construct 2? Post your questions here

Post » Thu Apr 17, 2014 2:23 am

How do I keep text on screen (in the top-left corner) when moving (both vertically and horizontally)?

Thanks in advance for any help. :D
B
3
Posts: 9
Reputation: 193

Post » Thu Apr 17, 2014 2:35 am

You can either use the anchor behavior or put it on its own layer (a user interface/hud layer, for instance) and set the scroll rate to 0,0.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Thu Apr 17, 2014 4:35 am

C-7 wrote:You can either use the anchor behavior or put it on its own layer (a user interface/hud layer, for instance) and set the scroll rate to 0,0.


Thank you. :D
B
3
Posts: 9
Reputation: 193

Post » Thu Apr 17, 2014 4:41 am

Can you go into a little more detail though? I tried anchoring and bringing it to the UI layer, but I actually do not see it anymore.
B
3
Posts: 9
Reputation: 193

Post » Thu Apr 17, 2014 5:11 am

Create a new layer (I call mine UI) and just set the parallax to 0,0. It defaults to 100,100. That way the layer doesn't scroll as the rest of the layout does. You can manually move the sprites on that layer to wherever you want and they will stay at that point on the screen.

Image
B
11
S
2
G
1
Posts: 79
Reputation: 842

Post » Thu Apr 17, 2014 5:34 am

ThomasP wrote:Create a new layer (I call mine UI) and just set the parallax to 0,0. It defaults to 100,100. That way the layer doesn't scroll as the rest of the layout does. You can manually move the sprites on that layer to wherever you want and they will stay at that point on the screen.

Image


It is not showing up for some reason.

Image

Image
B
3
Posts: 9
Reputation: 193

Post » Thu Apr 17, 2014 8:32 am

I bet you did not put it in the small box that is your game screen. You need to make sure your text is in the top left side of the screen. Since you screen will not scroll when you set it's parallax to 0,0
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Thu Apr 17, 2014 10:33 pm

ZeroBelow wrote:I bet you did not put it in the small box that is your game screen. You need to make sure your text is in the top left side of the screen. Since you screen will not scroll when you set it's parallax to 0,0


Thanks :D I did not have it all the way in the top left corner of the game screen when I placed it.
B
3
Posts: 9
Reputation: 193

Post » Fri Apr 18, 2014 1:02 am

np, I ran into that problem before. Glad it was a easy fix.
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Fri Apr 18, 2014 10:05 am

Try this little demo and you will find your answer
You do not have the required permissions to view the files attached to this post.
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests