How do I manipulate xscale of a sprite?

Get help using Construct 2

Post » Sat Feb 27, 2016 9:13 pm

I would like to to something like this:

while (sprite.xscale > -1){
sprite.xscale -= 0.05;
}

the effect would be kinda like a paper mario turn.

I can't find anywhere to manipulate the xscale.

Any thoughts?
B
32
S
10
G
6
Posts: 259
Reputation: 6,776

Post » Sun Feb 28, 2016 12:53 am

If you want a proper paper mario turn, I don't think it is possible because mario is a plane and this "plane turning effect" could be only achieved by 3d engines. BUT I think you could create the illusion of it with sprite animation. Hope this helps.
B
7
S
2
G
1
Posts: 38
Reputation: 917

Post » Sun Feb 28, 2016 1:06 am

I thought of that too but I don't se how that would be done with a walking animation

altering the xscale on a playing animation would have solved it.. I tried the LiteTween plugin but it wont go from 1 to -1 just from 1 to 0

edit:
going from mirrored to not mirrored in a chosen number of steps...
B
32
S
10
G
6
Posts: 259
Reputation: 6,776

Post » Sun Feb 28, 2016 4:14 pm

MonDieu wrote:edit:
going from mirrored to not mirrored in a chosen number of steps...


Exactly... And these number of steps state could call the flip animation
B
7
S
2
G
1
Posts: 38
Reputation: 917


Return to How do I....?

Who is online

Users browsing this forum: unxcellent and 9 guests