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
143
S
72
G
19
Posts: 1,777
Reputation: 21,704

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
143
S
72
G
19
Posts: 1,777
Reputation: 21,704

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
386
S
229
G
87
Posts: 24,207
Reputation: 191,742


Return to Construct 2 General

Who is online

Users browsing this forum: NetOne and 5 guests