# How do I create a illusion of distance

Get help using Construct 2

### » 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,050
Reputation: 8,203

### » 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:

Check out my game "Last of the Survivors":
Play Store
App Store
B
62
S
14
G
2
Posts: 430
Reputation: 5,610

### » 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,050
Reputation: 8,203