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
30
S
15
G
10
Posts: 285
Reputation: 7,144

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
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sun May 31, 2009 1:16 am

It is wich I do. Thanks Ashley.
B
30
S
15
G
10
Posts: 285
Reputation: 7,144


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests