Effect "Set Color" doesn't work as expected

All closed bug reports are moved here.

Post » Wed Apr 05, 2017 8:35 am

1. Steps to reproduce:
- Create a colored sprite object
- Put a "Set color" effects on it and put all 3 values to 150, the sprite appears as grey in the editor.

+ System: On start of layout
-> Sprite: Set effect "SetColor" parameter 0 to 255
-> Sprite: Set effect "SetColor" parameter 1 to 255
-> Sprite: Set effect "SetColor" parameter 2 to 255

2. Observed result
When the project is imported from C2, the sprite appears as BLACK in the preview.
When the project is created from scratch in C3, the sprite appears as GREY in the preview

3. Expected result
The sprite should appear as white in the preview.
Note : changing the desired colors from 255 to 150 or replacing "on start of layout" by "every tick" doesn't change anything.

4. c3p file
File which has been created in C2, and modified in C3 https://www.dropbox.com/s/6fu2hvpiw565v ... g.c3p?dl=0
Please note this file had further bugs in it.

File created from scratch in C3 : https://www.dropbox.com/s/6ej6qe8imhlie ... 3.c3p?dl=0

[EDIT] Here is the basic C2 capx file just in case : https://www.dropbox.com/s/1bpcqgri1l1k3 ... .capx?dl=0

Bonus note
I imported the file from C2, but when using C3 event sheet to change an effect parameter, I need to enter the name of the effect manually! In C2 there was a drop down list of all effects applied to this object which was much more convenient.
B
33
S
6
G
1
Posts: 355
Reputation: 2,850

Post » Wed Apr 05, 2017 1:24 pm

Notice in C2 the effect uses three parameters, for R, G and B. In C3 there's just one color parameter. It's difficult to make the importer understand this, so this is one of the few incompatibilities that come up when importing a C2 project. Instead you just set the first parameter to rgb(r, g, b).

...then I tried that and it still didn't work, so fixed that for r16!
Scirra Founder
B
402
S
238
G
89
Posts: 24,613
Reputation: 195,993

Post » Wed Apr 05, 2017 2:45 pm

Thanks Ashley!
Ok, I take good note of the slight incompatibility.
B
33
S
6
G
1
Posts: 355
Reputation: 2,850


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests