How do I add a "squash" effect to a physics sprite?

Get help using Construct 2

Post » Wed Nov 12, 2014 12:12 am

Hey all

I have a Sprite with a physics behavior, And I've set it's image point to the bottom center. When I click a button, it's squshing towards the ground, which is great.
However, the sprite is rotating and the image point is the same, meaning if I press the button while it's rotated, it will not always squish down, but rather sideways or up.

Any way of always set the image point to its "current down"? maybe rotate the image point when rotating the sprite?

Thanks!
B
18
S
7
G
1
Posts: 160
Reputation: 1,934

Post » Wed Nov 12, 2014 2:31 am

simply reset the sprite scaling by using the y axis and stretch it to -(squashed amount intended here) and then your done, and make sure it has the correct value intended and is affected by the physics behavior if your using physics and then resize the canvas of the collision sprite to the same as the y axis on the sprite...
B
8
S
2
Posts: 134
Reputation: 1,001

Post » Thu Nov 13, 2014 6:11 pm

@truefalcon thanks, but I didn't fully understand what you meant by "reset the sprite scaling". I'm changing the sprite's height, not scale...
B
18
S
7
G
1
Posts: 160
Reputation: 1,934

Post » Fri Nov 14, 2014 10:06 am

That's how you change it, there is no other way...
B
8
S
2
Posts: 134
Reputation: 1,001


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests