Fall and Reset Position

Discussion and feedback on Construct 2

Post » Sat Feb 22, 2014 6:09 pm

Hi guys...
I have made html5 game.
in this game I put some pot in some window, when window close a pot fall
and when the pot touch floor the pot animation to pot broken in 0.5 second
after that the pot invisible and reset pot position to first position.

i have trouble with pot broken animation
I can not stop and hold Y position of the pot when the pot collision with the floor
and the Y position of pot not truly in first position when reset after collision.
please help me this is the code
Image
B
4
S
1
Posts: 34
Reputation: 443

Post » Sun Feb 23, 2014 7:03 pm

on something > play the animation "braking"
on animation "breaking" finished > reset layout
B
38
S
8
G
3
Posts: 439
Reputation: 6,876

Post » Sun Feb 23, 2014 7:52 pm

No, I mean the pot will hold at a second and play break animation after that pot will invisible and
the position of pot reset as the first position not the layout reset.
B
4
S
1
Posts: 34
Reputation: 443

Post » Sun Feb 23, 2014 8:01 pm

This is hard to analyse, like for instance, why is there a b1 and b2 pot, what's the difference? Maybe if you upload a capx, we could help more!
But from what I can gather. When you reposition the plant pot back up to the window, you're making it invisible, which hides the fact that you're plant pot is naturally falling because of the physics behaviour. So when the "Falling" events are triggered, it's not what you expected.
We could definitely help more with a .capx!
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Mon Feb 24, 2014 1:23 pm

I want make game like this gif
Image

and this is my capx.
http://resvi.net/my_file/mycat.capx
please help me.. i do need it.
thank you so much for your help..
B
4
S
1
Posts: 34
Reputation: 443


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests