Always in Centre

Get help using Construct 2

Post » Thu Feb 13, 2014 1:20 pm

@LittleStain

I am genuinely surprised. That actually worked. Not sure how...

However, it did break an awful lot of my game. One example is that I had an event that would delete anything that went off screen, so things would randomly disappear when they got too close to the edge.

Just testing out the viewport suggestion, then I'll give Colludium's a go :)
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
81
S
13
G
7
Posts: 969
Reputation: 10,898

Post » Thu Feb 13, 2014 1:57 pm

viewportleft+((viewportright-viewportleft)/2) worked great! I'll use this for future games.

@Colludium

That is very interesting indeed. Very clever idea for huds for multiple screen sizes. All you'd need to do is run the function at the beginning, and you're set!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
81
S
13
G
7
Posts: 969
Reputation: 10,898

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 16 guests