Easy way to flip sprites upside down?

For questions about using Classic.

Post » Sun Mar 06, 2011 7:36 am

[SOLVED. New problem in fifth post...]

I'm playing around with gravity and want to flip them for walking on the ceiling. I COULD just manually flip them all and make new animations, buut... I'm lazy. :D Is there a simple way to do it that I just haven't noticed?
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Mar 06, 2011 7:39 am

There is a set animation angle and you could rotate it as well in events.
B
2
G
1
Posts: 10
Reputation: 470

Post » Sun Mar 06, 2011 7:52 am

Yeah, I was looking at those, but it doesn't seem like I can say if on ceiling, change angle to 90. Because you still walk left and right on the ceiling, meaning it would have to change angles away from 90 back to 0 and 180, right? I don't see how that can work.

Unless I made 90 and 180 "left while walking on ceiling" and "right while walking on ceiling" respectively... but that's a lot of work, which I wanted to avoid in the first place. :P I've got 40+ animations and rapidly increasing, I'd rather not have to manually flip 'em all!
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Mar 06, 2011 8:21 am

I think there are shaders for that..Otherwise just set the height or width to a negative value.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Mar 06, 2011 9:53 am

Had to play with the angles a little bit, but the negative value trick works like a charm. Thanks!

EDIT: New problem... When I switch the gravity to up, my character should go through all the "floor" platforms (the ones you stand on when gravity is down), but he still has to be able to collide with other objects mid-air as well as the "ceiling" platforms. I can't seem to find a good way to do this...
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Mar 06, 2011 2:51 pm

You could try to switch the collision modes for the standing platforms to off when the character is upside down.And when he is right side up then switch it back on again.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Sun Mar 06, 2011 2:52 pm

[quote="DravenX":3ab2xtrx]You could try to switch the collision modes for the standing platforms to off when the character is upside down.And when he is right side up then switch it back on again.[/quote:3ab2xtrx]

I literally tried to do that five seconds before I saw your post, but as far as I can see you can't change the collision mode of a tiled background, which most of the floor platforms are. Unless I'm completely missing something here...
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Mar 06, 2011 3:09 pm

If you are using 0.99.97 you could use the Add/Remove Attribute action to enable/disable "Solid" or "Platform".
B
79
S
24
G
54
Posts: 4,744
Reputation: 40,751

Post » Sun Mar 06, 2011 3:12 pm

[quote="R0J0hound":3oar91vr]If you are using 0.99.97 you could use the Add/Remove Attribute action to enable/disable "Solid" or "Platform".[/quote:3oar91vr]

Hah, awesome. I tried searching for that and found an old post that said it wasn't possible to remove it during runtime. Silly me assumed that was still the case. :P Thanks.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Mar 06, 2011 3:14 pm

[quote="R0J0hound":upadsllb]If you are using 0.99.97 you could use the Add/Remove Attribute action to enable/disable "Solid" or "Platform".[/quote:upadsllb]

How does that work?.Can a attribute be disabled/enabled during gameplay?.Ah now i see very nice feature indeed. :oops:
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests