How do I create a illusion of distance

Get help using Construct 2

Post » Tue Apr 15, 2014 1:42 pm

I intend to create a game like circus game: shoot balls in the clown's mouth. For this I need to create the illusion of distance between throw the ball (larger ball) and the arrival to the target (smaller ball). I think it would be right to use lerp to create this animation and maybe I need to simulate physics to show the ball falling. I need some ideas. Thank you.
B
74
S
14
G
4
Posts: 1,018
Reputation: 8,139

Post » Tue Apr 15, 2014 3:15 pm

Assuming you are shooting from bottom of the screen to the top.

You can decrement the Size of the Ball as the Y Axis changes....

Example:
Every Tick:
Ball.Y=Ball.Y - 1
Ball.Scale = Ball.Scale - Ball.Y


The above is just the pseudo code. You might have to translate it into Construct 2 formulas.
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
60
S
14
G
2
Posts: 427
Reputation: 5,564

Post » Tue Apr 15, 2014 3:49 pm

Thanks @SamRocK

Actually the target is about the same hight of the throw. I think I need to do a kind of parable: a ball is thrown rises slightly and then falls, while decreasing in size.
B
74
S
14
G
4
Posts: 1,018
Reputation: 8,139


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], maddy467 and 11 guests