Replacing Objects

Discussion and feedback on Construct 2

Post » Tue Apr 23, 2013 9:25 pm

Yeah, it worked for me. Can you provide a specific example of it not working? (Share a .capx and say which event to replace object on)
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Apr 23, 2013 9:38 pm

Ok, this may be a bug actually. Consider this (taken from the 3D game I just posted in the arcade):

+Tree -> Set TransformedX to Tree.WorldX - CameraX

This renames ok (if I copy and rename it to the "Grass" sprite object), however ...

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

...does not. It would seem that parameters are ignored. ;) 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. ;)JoyfulDreamer2013-04-23 21:46:48
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601

Post » Wed Apr 24, 2013 10:30 am

[QUOTE=Ashley] Yeah, it worked for me. Can you provide a specific example of it not working? (Share a .capx and say which event to replace object on)[/QUOTE]

I'v noticed yesterday that it's doing it but not always... On my project it's a bit random. Sometimes it's only changing an Action object and sometimes Action object and object in expression. Unfortunately can't reproduce it in new projects.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Wed Apr 24, 2013 11:29 am

OK, I think I can reproduce a problem with parameters to the Function.Call expression. As far as I can tell no other expressions are affected. Is this what you're seeing?

You should report this type of thing to the Bugs forum; I don't always have time to check every thread so I might have missed this, but I always check everything in the bugs forum.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Apr 24, 2013 11:47 am

Actually this started out as a request, which turned into a bug. LOL. ;) np
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: zenox98 and 14 guests