Zooming Layers problem

This forum is currently in read-only mode.
  • Hello!

    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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)