How to zoom out like angry birds

Hey guys, im new to corona and i was looking at the ghosts vs monsters project and i was wondering how i could make it so that you can zoom out and view the whole 960 px of the screen just like in angry birds and also how to zoom in back to 480 px

thnx in advance [import]uid: 116418 topic_id: 20087 reply_id: 320087[/import]

Welcome - I assume the name comes from the tiny skateboards? :slight_smile:

Take a look at the PinchZoomGesture in Corona > SampleCode > Interface, that may be what you’re after.

Peach :slight_smile: [import]uid: 52491 topic_id: 20087 reply_id: 78460[/import]

yes i remember those things i used to play with them but then the name stuck so yea.

how exacly would i add this to the ghosts vs monsters code? I have tried pasting the main code (background:touch and calculateDelta()) i had put the multitouch thing in and made an event listener but i keep getting errors [import]uid: 116418 topic_id: 20087 reply_id: 78616[/import]

I like fiddling with things when I’m bored and actually have a techdeck on my coffee table :slight_smile:

For adding it, you’d have to carefully go through bit by bit - you can’t just mash two projects together.

I’d suggest starting a new project and adding in bits from each so that you can learn as you go and carefully eliminate any errors.

You can just add it to Ghosts VS Monsters but it would be a slow process and you’d have to check as you went to ensure you were taking care of groups, etc.

Peach [import]uid: 52491 topic_id: 20087 reply_id: 78643[/import]