How do I change the fill color of an instanced sprite?

Get help using Construct 2

Post » Tue May 20, 2014 6:30 am

Alright!
Installing the last release and re-creating the app worked and I am very happy with the result.

I hope to implement the snap feature next ....

Too bad that I can't post a link yet because I'd love to get a little bit of feedback to see what you think?

It's been a loooong day .... but I accomplished what I wanted to. :)
B
14
S
4
Posts: 190
Reputation: 1,735

Post » Thu May 22, 2014 8:51 pm

@vancouver sorry, I didn't notice your newest post.

Why don't you type the link with some digits altered...? e.g http://yyy.whatever.com

That way we can check upon your progress and input our feedback... :)

EDIT- I see that the link is automatically generated from the http://... part (?)

Test: yyy.whatever.com

ok that seems to work :)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Thu May 22, 2014 11:13 pm

Hello again eli0s,

thanks for the linking tip.

My main site is: http://littlecomposers.com/ (if that gets removed, just copy paste " littlecomposers.com "

From the main menu, click on > PLAY and from the drop-down menu select "Play" once more.

This would be the full link: http://littlecomposers.com/apps/pre-piano/index.html

Tonight, I am adding the snap to box feature and maybe change the background back to white so that it matches the Flash app a little better.

I love C2 and wish I had discovered it earlier! :)
B
14
S
4
Posts: 190
Reputation: 1,735

Post » Thu May 22, 2014 11:52 pm

The links are working just fine :)

Yes, please do change the black BG ! I really liked what I saw in the video presentation. At first I was skeptical for the color coding of the keys, but seeing how you implement the I & V chord groups and their relation with the corresponding notes, I really believe that this method is instructive without complicating things.

I really enjoyed your site overall, and that trumpet design kicks a** :)

I wish you best of luck and if you get stuck anywhere don't hesitate to post (just use the @eli0s to let me know) and if it is with in my abilities I'll try to help :)

CU around ;)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Fri May 23, 2014 12:11 am

Thank you eli0s!
You've already helped me a lot and I am glad that you saw the concept ... how it works, etc...

Yes, I am changing the BG right now plus a few other things like I've already mentioned.

The plan is to have a handful of HTML5 alternatives for those visitors who can't access the Flash content.

I am glad that you like the trumpet. Kids just LOVE it. It's the first instrument they pick. It is available for the iPhone and iPad and still gets some downloads (after over 3 years in iTunes which is why I am so excited about C2.

We'll talk soon and stop by once in a while. There will be a lot of new content posted throughout this summer.

Again, thank you for your encouraging comments. They made my day! :)
B
14
S
4
Posts: 190
Reputation: 1,735

Post » Fri May 23, 2014 4:12 am

If the colors you want are simple and you do not have more than one color in the picture (color family, that is like blue, light blue, dark blue but still blue) other than black and white, then you can:

Add the Effect Adjust HSL to the sprite you want to use.

And then in the events, maybe at load layout, you can set the effect parameter to the parameters. Index zero is Hue, and this changes the COLOR. index 1 is saturation, adjust the saturation, that is, max = strong vibrant color, lower = more grey added. index Two changes the BRIGHTNESS, max = white, lower = black. Play with these 3 values to change colors.

You can "preview" by doing same thing in your photo editor, choose adjust hue/saturation/brightness.. So you know roughly which values you should enter.

Note, you have to have some color in the field to begin with, this will not work with a entirely black&white picture. Start with like red and from there you can work your way. if you want solid white and solid black you might want to have separate graphic for these.

Then there's other Effects to use, play around.
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Fri May 23, 2014 4:18 am

Also, if you have more colors in the picture but the other colors are constant, or for different approach, you can make two objects. The first with the static colors, such as black border, shades etc and use transparency, making the color field transparent plus of course the field outside too if you want. And then you add another object aligned exactly under that first one, and on that one you have the color you want and on THAT object you can either use adjust HSL Effect or Replace Color.
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Fri May 23, 2014 5:15 am

Thank you helena,
Your suggestions open up a whole new way to approaching my colour issues.
I will make a little sample app to see what it looks like. Getting the colours right is very important for my apps.

As soon as I have the snapping implemented, I will re-visit the colouring of the keys unless I switch to images (but I'd rather keep the file size down).

Cheers,
V :)

P.S. Your website looks fantastic. I love your work! :)
B
14
S
4
Posts: 190
Reputation: 1,735

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests