Replace Object

Bugs will be moved here once resolved.

Post » Thu Apr 25, 2013 3:44 am

In regards to this post (upon @Ahshley's request):
http://www.scirra.com/forum/topic66771.html

Steps to reproduce:
+Tree -> Set TransformedX to Tree.WorldX - CameraX

If I copy and rename this to the "Grass" sprite object, then it works; however ...

+Tree -> Set TransformedZ to WorldDepth - f.Call("RotateZYForZ", distFromHorizon, Tree.TransformedY, WorldTilt)

...does not. It would seem that parameters are ignored when objects are replaced. ;) Seems like somewhat inconsistent behavior.

Edit: Again, before anyone calls me out on this, yes, best practice is to use "Self". I just figure consistent behavior is also good to maintain. ;)

Observed result:
Object references with the same name in parameters are ignored, while the same object name outside any parameters are changed, causing inconsistent behavior.

Expected result:
Object references with the same name in parameters should also change

Construct 2 version:
r126JoyfulDreamer2013-04-25 03:44:27
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601

Post » Thu Apr 25, 2013 1:28 pm

Thanks, good find, should be fixed in the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590

Post » Thu Apr 25, 2013 8:34 pm

Good stuff, you guys are awesome. ;)
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests