Object.Center

For questions about using Classic.

Post » Sun May 31, 2009 12:16 am

Is there anything like Object.Left, Top... to get the center of the Object? I no mean the hotspot position. Something like Object.Center, CenterX...? I now that I can do the math but it would be nice to keep the code shorter :)
B
34
S
16
G
10
Posts: 285
Reputation: 7,349

Post » Sun May 31, 2009 12:41 am

Nope - if it's not in the expressions list it doesn't exist. It's just (Object.Left + Object.Right) / 2, though.
Scirra Founder
B
383
S
224
G
86
Posts: 24,085
Reputation: 190,366

Post » Sun May 31, 2009 1:16 am

It is wich I do. Thanks Ashley.
B
34
S
16
G
10
Posts: 285
Reputation: 7,349


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests