Does Construct has problems with physics?

Get help using Construct 2

Post » Tue Aug 19, 2014 7:04 am

Hi!

I'm trying to launch the cat from one point to another. I know the coordinates, Velocity along X and Gravity. The cat has Platformer behavior. MaxSpeed, MaxFallSpeed and Deceleration are set to 99999999. The gravity is constant.

Using this formulas:
x(t)=x(0)+vx(0)*t

y(t)=y(0)+vy(0)*t−0.5*g*t^2

where t is the flight time.

I've managet to get the Velocity along Y I need to apply to cat to launch him so he lands at specific spot but when I test the game I can't get the correct result - the cat lands slightly further every time.

Here are my calculations:
Vx:=300;Xc:=20;Yc:=290;Xt:=300;Yt:=290;G:=1500
= 1500

t:=(Xt-Xc)/Vx
= 0.9333

Vy:=(Yt-Yc+0.5*G*t*t)/t
= 700


Cat starts at (20,290) and has to land at (300,290). Horisontal velocity is 300 and gravity is 1500. According to my calculations the vertial velocity shoud be equal to 700 but when I set this velocity to the cat he lands not at (300,290) but from 5 to 10 pixels further along the X.

Here's the link for the project:
https://www.dropbox.com/s/gi940wsgoozqquv/Asshole%20Cat.capx
B
5
Posts: 13
Reputation: 243

Post » Tue Aug 19, 2014 7:43 am

It appears to me (sorry if I'm wrong) that you are attempting to create the Angry Bird type mechanic.

Have you tried the Physics Catapult template?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,548
Reputation: 60,440

Post » Tue Aug 19, 2014 7:58 am

It's not similar to angry bird - the cat has to land at specific spot and nowhere else.

The platform has to have "Jump Trough" behavior. I couldn't reproduce it with Physics behavior.
B
5
Posts: 13
Reputation: 243

Post » Tue Aug 19, 2014 8:00 am

You might like this capx: (not made by me)
You do not have the required permissions to view the files attached to this post.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 19, 2014 8:06 am

LittleStain wrote:You might like this capx: (not made by me)

Looks good ) Thanks. Will try to mod this project with jump trough mechanic. But still have to test the precision of the calculations.
B
5
Posts: 13
Reputation: 243


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 3 guests