Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to BLEND TINT from one color to another ?

Author
Message
Abhishek
11
Years of Service
User Offline
Joined: 17th Aug 2013
Location:
Posted: 17th Aug 2013 16:57
As you can see from the attached Jpg, I want to change the glow colour around the line, Red Colour glow with white line to green colour glow with white line. How can I change other colours without changing white ?

Those who use photoshop will know this happens with it that when a layer which has non white colour, with the Hue option you can change its colour, but if part of has any white, the white remains unchanged.

How do I do that in Agk too ?

When I use the SetSpriteColour() it changes the white part too. I want the white to remain static ..and the glow to change

Attachments

Login to view attachments
Marl
13
Years of Service
User Offline
Joined: 19th Nov 2011
Location: Bradford, UK
Posted: 18th Aug 2013 00:01 Edited at: 18th Aug 2013 00:03
Depends how you are going to use it.

Probably the easiest way is to use two sprites. One for the white, one for the glow - which is also white initially.

So in a sense its doing the same as the Photoshop layers - but with sprites.

There are a few "clever" ways to achieve the result, but if the simple one works you don't need to be clever
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 18th Aug 2013 01:16
Is someone making a Starwars game?

xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 18th Aug 2013 04:22 Edited at: 18th Aug 2013 04:24
There are two ways to do this...
1)
- Open photoshop and do a white line, with white glow
- in AppGameKit, create the sprite and after do the agk:setspritecolor

2)
- Open photoshop and do the image as you want, but do the glow in 255,0,255
- Use the function i posted on this forum to change selective colors using memblock
This is the link
And you are ok!


Long life to Steve!

Login to post a reply

Server time is: 2024-11-24 17:55:53
Your offset time is: 2024-11-24 17:55:53