How do I center the sprite?

Just started using Construct 2? Post your questions here

Post » Mon Oct 12, 2015 6:32 pm

I have put a sprite with 8 direction behavior and the screen should always be centered on him.
I have seen an example .capx platformer that the developers put in and it says that the parallax is 0,0 or its UI on Layer settings. But I do not see the parallax or the ui when I open the Layer dropdown list.
So how do I do it?
B
4
Posts: 12
Reputation: 224

Post » Mon Oct 12, 2015 7:43 pm

Use the "scroll to" behavior on the sprite.
B
20
S
7
G
2
Posts: 58
Reputation: 1,974

Post » Tue Oct 13, 2015 11:37 am

have a look at

https://www.scirra.com/tutorials/314/pa ... ee-edition

for information about parallax
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Tue Oct 13, 2015 4:12 pm

Scroll to behavior worked for the player sprite but not for the objects I would like to stay there in one place all the time. UI. But there is no setting for it!
B
4
Posts: 12
Reputation: 224

Post » Wed Oct 14, 2015 3:28 pm

VikiPedia wrote:Scroll to behavior worked for the player sprite but not for the objects I would like to stay there in one place all the time. UI. But there is no setting for it!


Put all the UI objects on a separate layer..
select the layer in the layer bar (if not visible check the layer bar under the view tab)
In the Properties bar set the layer paralax to 0,0
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Oct 14, 2015 3:59 pm

Thank you, LittleStain!
That worked!
B
4
Posts: 12
Reputation: 224


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest