How do I center an object based on screen

Get help using Construct 2

Post » Thu Mar 20, 2014 4:14 am

Hi guys,

Please forgive me if this is a noob question. What action can I use to center an object to where the window is?

I want to use this for creating a minimap. The layout will be big, and the scrolling is determined by touching the screen, and not a player object on the screen. Which is why I want to use a dummy object to center to the screen so that I can set its location inside the minimap.

Or do you think there is a more effective way to do this?

Thank you.
B
42
S
21
G
31
Posts: 685
Reputation: 20,321

Post » Thu Mar 20, 2014 7:00 am

I think you MAY be looking for scrollx and scrollY

since i don't know much about your project i don't want to make up examples using scrollx and scrolly but i do think that's what your looking for.
B
19
S
4
Posts: 96
Reputation: 1,487

Post » Thu Mar 20, 2014 7:42 am

@LoganjFord. That did the trick. Thank you so much!
B
42
S
21
G
31
Posts: 685
Reputation: 20,321

Post » Thu Mar 20, 2014 8:00 am

No Prob
B
19
S
4
Posts: 96
Reputation: 1,487


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Casimir, marcoscodas, pwrtoppl, sublimate and 8 guests