How do I start the game from the middle of the layout

Get help using Construct 2

Post » Wed Sep 07, 2016 11:33 am

Message: amitkuliyal can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello guys,
I have a very simple question, take this example (https://www.scirra.com/tutorials/37/beg ... onstruct-2) here the game starts from top right corner whereas i want my game to start from the center of the layout so that the player won't bump the corner if he goes right after the game starts, I've looked every settings but couldn't find anything please help me

Thanks.
B
10
Posts: 26
Reputation: 485

Post » Wed Sep 07, 2016 12:04 pm

In On start of layout: Player->Set position(LayoutWidth/2, LayoutHeight/2)
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Wed Sep 07, 2016 12:05 pm

On Start of Layer >>> Scroll to (LayoutWidth/2 , (LayoutHeight/2)
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Sep 07, 2016 12:53 pm

Thanks @emoaeden and blackhornet
B
10
Posts: 26
Reputation: 485

Post » Thu Sep 08, 2016 7:50 am

Message: amitkuliyal can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello again, i'm trying to make this ( https://play.google.com/store/apps/deta ... e.Missiles ) kinda game but i don't know how do i make the character rotate at its own position while the scene around him moves and also how to make the scene this big
B
10
Posts: 26
Reputation: 485

Post » Thu Sep 08, 2016 9:06 am

Your URL does not work and your explanation is not very clear.

If you mean move the layout around the player object, it is all about the layout rotation/angle in the system expressions and actions.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144

Post » Thu Sep 08, 2016 9:19 am

Message: amitkuliyal can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Kyatric wrote:Your URL does not work and your explanation is not very clear.

If you mean move the layout around the player object, it is all about the layout rotation/angle in the https://www.scirra.com/manual/126/system-expressions]system expressions[/url] and [url=https://www.scirra.com/manual/125/system-actions actions.


"https://play.google.com/store/apps/details?id=pl.macaque.Missiles" like this...hope the link is working
B
10
Posts: 26
Reputation: 485

Post » Thu Sep 08, 2016 10:05 am

As per this video, the movement and camera is pretty much the one used in the beginner's guide.
You control it through Touch/Thumbstick though as described in the How do I FAQ.

ThumbStick example (mouse and touch) - LINK


For the background, it is an "unbounded scrolling" layout (property set to yes) on which you make some clouds randomly appear.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144

Post » Thu Sep 08, 2016 11:48 am

Message: amitkuliyal can only post plain text URLS until they have 500 rep. 3 URLS modified. Why?
Kyatric wrote:As per https://www.youtube.com/watch?v=dyiCf-v_JdU]this video[/url], the movement and camera is pretty much the one used in [url=https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2 the beginner's guide.
You control it through Touch/Thumbstick though as described in the https://www.scirra.com/forum/how-do-i-frequently-asked-questions_t63692 How do I FAQ.

ThumbStick example (mouse and touch) - http://www.scirra.com/forum/forum_posts.asp?TID=46992&PID=294264&title=how-to-make-a-thumbstickmobile#294264 LINK


For the background, it is an "unbounded scrolling" layout (property set to yes) on which you make some clouds randomly appear.


I'm new to construct 2 so could you pease elaborate how the "Unbounded Scrolling" is done?

Thanks
B
10
Posts: 26
Reputation: 485

Post » Thu Sep 08, 2016 12:36 pm

Manual article about the layout
See there is a property named "Unbounded scrolling".
Set the value to "Yes" instead of "No".
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
291
S
114
G
95
Posts: 7,293
Reputation: 70,144

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests