How do I Background Gradient Without Giant Sprites

Get help using Construct 2

Post » Sun Jan 24, 2016 5:27 pm

Hi!
I want to do some effects on the background of my platform games... like, I don't want just to put a solid color.
I would like a gradient like this:
https://dl.dropboxusercontent.com/u/191829622/22.jpg
But how can I achieve something like this, parallaxing at the background, without some huge, performance eaters, sprites?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Sun Jan 24, 2016 5:36 pm

Stretching a sprite works well with linear sampling.
Image ImageImage
B
166
S
49
G
154
Posts: 8,105
Reputation: 100,231

Post » Sun Jan 24, 2016 7:24 pm

What newt said above works well. In my game I use tiny sprites that are just 1x2-3 pixels in size and yet the gradient comes out very smooth.

An alternative would be drawing it with the Canvas plugin by R0j0hound.
"If you don't build your dream, someone else will hire you to build theirs"
B
12
S
3
G
1
Posts: 53
Reputation: 905

Post » Sun Jan 24, 2016 9:19 pm

Thanks for the Answers, @newt and @VValt !
I will try the stretch! For some reason, it didn't cross my mind. hehe

But, sorry, what about this Canvas Plugin? what exactly is its use?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Tue Jan 26, 2016 9:32 pm

And here it go another question... maybe @Ashley can answer me that...
this stretch method will really give better performance to my game or just make the download faster? (I think a read an Ashley topic about that...)

So... if it just make the download faster, how can I achieve the results I want without impact that much the performance?
B
20
S
4
Posts: 385
Reputation: 2,270

Post » Wed Jan 27, 2016 12:27 pm

Using a stretched sprite should perform fine. If you're not sure, measure it.
Scirra Founder
B
383
S
225
G
86
Posts: 24,118
Reputation: 190,544


Return to How do I....?

Who is online

Users browsing this forum: Laurent, wertt22, Yahoo [Bot] and 12 guests