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
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

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,112

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
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

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


Return to Construct 2 General

Who is online

Users browsing this forum: RageByte, TELLES0808 and 11 guests