Little help on map exploration project

Get help using Construct 2

Post » Tue Nov 19, 2013 12:11 pm

Hi to all,
I made a little project to explore an ancient WWI battlefield with satellite photos.
Everything is ok with it but I'd like to add a zoom function with :
- zooming with touch on a tablet
- zooming with + and - buttons for desktop computer use
- keep the pictures within the screen (i.e. no blanks around it)
- constraint zooming within x1 and x0.3 (till photo fills screen)

Here's the link to the project :
https://www.dropbox.com/s/5dsyorvh79u5zdj/Photo1914.capx

thanks for any help !
B
38
S
16
G
5
Posts: 269
Reputation: 5,964

Post » Tue Nov 19, 2013 12:13 pm

Oh, and project online is here :
http://27mai.free.fr/Oise1918/
B
38
S
16
G
5
Posts: 269
Reputation: 5,964

Post » Tue Nov 19, 2013 12:28 pm

It says it needs the Boundary plugin.
I was going to copy the "Touch zoom" demo into an event sheet, and include it in your event sheet, and see if that worked.
B
241
S
63
G
33
Posts: 903
Reputation: 40,729

Post » Tue Nov 19, 2013 12:37 pm

You're right ! I used the Boundary plug in to constraint photos into the viewier.
Here's where you can get the plug in (very useful !) :
http://www.scirra.com/forum/behavior-boundary_topic52539.html
thanks for your help
B
38
S
16
G
5
Posts: 269
Reputation: 5,964

Post » Tue Nov 19, 2013 1:01 pm

@Paradox the project was more about moving the images inside the viewport that making the viewport travel over the images. But I guess they are different approches
B
38
S
16
G
5
Posts: 269
Reputation: 5,964

Post » Tue Nov 19, 2013 9:17 pm

Any idea about that ?
B
38
S
16
G
5
Posts: 269
Reputation: 5,964


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests