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
13
G
4
Posts: 1,005
Reputation: 8,058

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
58
S
13
G
2
Posts: 421
Reputation: 5,397

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
13
G
4
Posts: 1,005
Reputation: 8,058


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 43 guests