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
152
S
75
G
21
Posts: 1,795
Reputation: 23,285

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
152
S
75
G
21
Posts: 1,795
Reputation: 23,285

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
402
S
238
G
89
Posts: 24,628
Reputation: 196,023


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests