Display specific part of image ?

Get help using Construct 2

Post » Sat Dec 08, 2012 8:30 pm

Hi all. Is there any way so that I can display a custom rectangular part of an image by defining the coordinates of the sub-rectangle ?
For example, suppose that I have a sprite with dimensions 100x1000 that it contains a landscape and I want to have a viewport of 100x100 where I will start displaying the original image by moving from left to right 1 pixel at a time.
Thanks.
B
5
Posts: 21
Reputation: 880

Post » Sat Dec 08, 2012 9:54 pm

You'll want to look into masking. There's an example in the C2 examples folder which should help you.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Dec 09, 2012 8:07 am

Thanks for replying. I searched the examples but could not find something related. Could you please be more specific ?
B
5
Posts: 21
Reputation: 880

Post » Sun Dec 09, 2012 12:42 pm

Hi again, could someone please send some more information about masking ?
Thank you.
B
5
Posts: 21
Reputation: 880

Post » Sun Dec 09, 2012 7:00 pm

nobody ? at least someone to reply if it's possible or not, so that I try to find some other solution.
B
5
Posts: 21
Reputation: 880

Post » Sun Dec 09, 2012 7:55 pm

I have never tried these out but, check in with your Scirra example files. There should be an example titled "Blend modes". Peek into that and see if that is what your looking for. Actually, now I think you can access that Blend mode template when you click to add a new file in those example options. Hopefully that will help you out.
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Sun Dec 09, 2012 8:42 pm

Thanks a lot ! It's a different approach compared to viewport I have been using until now to traditional development but I think it will solve my problem.
B
5
Posts: 21
Reputation: 880


Return to How do I....?

Who is online

Users browsing this forum: Pandadoor, Sotir31, Yahoo [Bot] and 27 guests