Zooming Layers problem

For questions about using Classic.

Post » Wed May 20, 2009 9:16 am


I am sooo happy I found this wonderful game-creation-tool! 2004 I created a game with the Game Factory.

And now I am attempting to create a much better game with construct.

I started a few days ago and right now I am having a little problem with the zooming layers function. In my game there are two space ships and i figured out how to center the camera between those ships. But as soon as one is leaving the Layer and I want to tell construct to zoom out 1%, construct doesn't stop! after a few seconds it zoomed out completely and I even can't see my ships anymore.

Another Problem I am having is that the Warp flight doesn't start properly. When I try to activate it, construct turns it on and immediately off again. I tried to fix it with the "trigger once when true" function but that didn't work out...

Doesn anyone want to take a look at my cap file?

Your help is greatly appreciated! :)

http://rapidshare.com/files/235111005/S ... 9.rar.html
Posts: 2
Reputation: 829

Post » Wed May 20, 2009 9:48 am

Hmm, I would do it differently myself... Scale the zoom accordingly to the distance between two ships. Zoom in when ships are close together, out when they're apart. Use distance(x1,y1,x2,y2) expression with a multiplier, tie the zoom level to that and fine tune until it stops causing motion sickness. ;)

Also, I suggest looking at http://apps.sourceforge.net/mediawiki/c ... Time_Delta - Time Delta is an expression that lets you scale stuff gradually, independently of frame rate. So, where you have Zoom=Zoom+1, you'd want to replace the 1 with TimeDelta*zoomspeed
Posts: 1,910
Reputation: 13,685

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests