Z Axis Animation

Discussion and feedback on Construct 2

Post » Wed Feb 19, 2014 4:34 am

hello friend,

i am new user and currently i am working on a simple game but there is some problem i want ball animation like this game.


How to make Z axis animation in construct 2.

Please help me
Posts: 3
Reputation: 181

Post » Wed Feb 19, 2014 8:25 am

You fake it with math, C2 doesn't support real movement on the Z-axis What mainly happens when an object travels across the Z-axis is a change in size, and maybe (depending on the type of 3d projection) the ball gets displaced relative to the center of the screen.

If you want just the former, have a formula like
Ball Original Size* ((100-Z)/100)
With Z increasing as the ball goes further forward, making the ball get smaller as it approaches 100

To throw in the latter also
Ball original position relative to the center of the screen* (100/(100-Z))
Though I don't think this will be necessary in this case

To go completely overboard
Go here: http://en.wikipedia.org/wiki/3D_projection
Posts: 184
Reputation: 7,150

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests