Image points in expressions redundant?

Discussion and feedback on Construct 2

Post » Wed Aug 29, 2012 3:12 am

Is it necessary to have to use sprite.ImagePointX(2), to refer to the X position of an image point? Couldn't it just be sprite.X(2)? And if the brackets aren't there then it means (0)? alspal2012-08-29 03:13:49
B
149
S
75
G
20
Posts: 1,791
Reputation: 22,693

Post » Wed Aug 29, 2012 3:14 am

That WOULD be pretty nice, actually, since I have some pretty lengthy lines filled to the brim with "ImagePointX" and "ImagePointY" over and over. On the other hand, it's a little less intuitive for people who don't know about it.
B
20
S
9
G
6
Posts: 607
Reputation: 6,117

Post » Wed Aug 29, 2012 3:15 am

To further illustrate the redundancy, imagine if Sprite.X read as Sprite.HotSpotX in expressions.alspal2012-08-29 03:18:08
B
149
S
75
G
20
Posts: 1,791
Reputation: 22,693

Post » Wed Aug 29, 2012 12:04 pm

Some users have requested the ability to translate co-ordinates between layers. That might be a better candidate for a parameter to the X and Y expressions.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,496


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests