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
135
S
65
G
17
Posts: 1,766
Reputation: 19,727

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
135
S
65
G
17
Posts: 1,766
Reputation: 19,727

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
362
S
216
G
75
Posts: 23,067
Reputation: 180,331


Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans and 10 guests