Center camera on me

New releases and general discussions.

Post » Fri Jan 08, 2010 5:51 am

Or whatever it is called.
I just discovered something you may or may not know. If this is obvious knowledge, please delete this thread admins. If not, prepare to shit brix.

I was posting about my camera a couple of days ago, and I found the ULTIMATE solution.
If you put center camera on me on two objects, one on your character, and one on something else that will stay within the screen with your character at the same time; the camera centers between them.

I realised this while toying with sine movement. It makes the perfect camera for me, I have the other thing set to the xhair, so maximized the character will not go out of the screen. :D.
B
2
G
3
Posts: 46
Reputation: 942

Post » Fri Jan 08, 2010 10:10 am

It's documented :P
From: http://sourceforge.net/apps/mediawiki/c ... Attributes

[quote:3kdzk5jf]Center view on me: This will always scroll the display to the object's co-ordinates at all times. This can be changed at runtime with the System action "Scroll to object". If more than one object instance have this attribute, Construct scrolls to the mid point between all of them. [/quote:3kdzk5jf]
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sat Jan 09, 2010 2:09 am

Darn, I was hoping I had discovered something revolutionary.
B
2
G
3
Posts: 46
Reputation: 942

Post » Sat Jan 09, 2010 8:01 pm

Well, I doubt I'd be surprised, since I wrote it :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sun Jan 10, 2010 5:09 am

[quote="Fresh Frijoles":2756u8sy]O
If you put center camera on me on two objects, one on your character, and one on something else that will stay within the screen with your character at the same time; the camera centers between them.

[/quote:2756u8sy]


Ye-yeah? :shock:

I actually haven't tried that. how cool :D
B
2
S
1
G
4
Posts: 156
Reputation: 1,612

Post » Mon Jan 11, 2010 10:27 am

Nice one... I didn't actually know about this until now. Goes to show I should read more of the documentation lol.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Mon Jan 11, 2010 1:42 pm

[quote="SoldjahBoy":32anux5s]Nice one... I didn't actually know about this until now. Goes to show I should read more of the documentation lol.[/quote:32anux5s]
Ditto and Ditto. :lol:

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest