Editor, copy-paste object +/- effect bug

Report Construct 2 bugs here.

Post » Fri Mar 04, 2016 6:49 pm

Problem Description
If you copy/paste actions where an object's effect parameters are being set and then replace the object with another that does not have the same effect then the events disappear. Then if you add the effect to the second object and then copy/paste the first actions again, the originally replaced second-object actions appear, along with the newly pasted event actions.

Attach a Capx
capx link

Description of Capx
There are 2 objects,Ssprite1 and Sprite2. Sprite1 has the effect "Set Color" and the effect's parameters are set on start of layout in the event sheet.

Steps to Reproduce Bug
  • Copy/paste the 3 actions to set Sprite1's effect parameters.
  • On the newly pasted actions, replace object Sprite1 with Sprite2, observe the actions disappear.
  • Add the effect "Set Color" to Sprite2.
  • Copy/paste the 3 actions again.

Observed Result
The first 3 pasted actions appear, with successfully completed replaced object from the first steps.

Expected Result
Objects without the effect should not be offered as options for replacement and, on pasting the copied events, only the most recently copied actions should appear.

Affected Browsers
  • N/A

Operating System and Service Pack
W10 x64

Construct 2 Version ID
r221 64 bit
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

Post » Tue Mar 22, 2016 6:18 pm

I can reproduce, but it's a tricky fix. For now the next beta has a small tweak to make this a bit less confusing: the actions that disappear come back when you add the effect to Sprite2, instead of when you paste actions again.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464

Post » Tue Mar 22, 2016 7:01 pm

Sounds good - thanks @Ashley.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests