Kinsures > Programming help > Novice Questions & Answers
Your Ad Here
Full Version: zooming in
AwesomeDesign
Is there a way to zoom in on the object that the view follows by any chance?

Thanks
TechnoSuperguy
There sure is! Put this code in the Create event of the object the view follows:
CODE
scale=1
zoom=false


Then put this in its Step event:
CODE
view_wview=640*scale
view_hview=480*scale

if zoom=true and scale>.5 {scale-=.05}

When you're ready for the view to start zooming in, simply set the "zoom" variable to true, then sit back and watch the fun! Please note, in this example, I've set a zoom limit of .5 (which is 2x the scale of a normal view), so edit the limit to your liking.
AwesomeDesign
Thanks Im going to use this for a cool effect in GC smile.gif
Powered by IP.Board v1.3 © 2003 - iPBFree v.2.1 © 2007