Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Here is a python script for ease in and out camera motion.
def __call__(self, obj):
# x motion
if self._vx**2/(2*self.acceleration) >= abs(diff):
# y motion
if self._vy**2/(2*self.acceleration) >= abs(diff):
No need to understand how it works, just have that script run at the "start of layout" and call "myscroll(Sprite)" every tick. The only setting is acceleration, which can be changed at any time with the script "myscroll.acceleration=400".
Basically what it does is accelerate the camera to the object and then decelerate so that when the screen arrives at the object the camera speed will be zero.
Example of use: [url]http://dl.dropbox.com/u/5426011/examples/camera%20easeinandout.cap[/url]
req at least 0.99.84
Feel free to use or enhance.
Develop games in your browser. Powerful, performant & highly capable.
That's a really nice effect, great work! I bet it'd look good combined with a slight pan out when moving and a pan inwards when motionless.
Really cool, thanks for sharing