How can I make a box floating on the surface of the water ?

Get help using Construct 2

Post » Tue Jan 17, 2017 5:24 pm

Well, yeah, it doesn't work properly :) . Thanks you again for your help !
B
38
S
10
G
9
Posts: 212
Reputation: 6,995

Post » Sat Jan 21, 2017 10:49 am

Sorry it took so long but I had a very bad cold.
Please have a look If this works better for you:
https://drive.google.com/uc?export=down ... 0NQUW1TNzg
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sat Jan 21, 2017 8:47 pm

[quote="Asmodean"]Sorry it took so long but I had a very bad cold.
Please have a look If this works better for you:
https://drive.google.com/uc?export=down ... 0NQUW1TNzg[/quot

Don't worry :) .
It is better. But the box that is on the bottom of the water, at start of layout, I would want it to move up faster that the water is rising, and rich the surface - instead of "teleporting" up.
I've noticed that if I push a box out of the water it remains in the air.
I don't understand all those conditions that you've made in the event sheet... so it's confusing for me :| .

I've modified the capx a bit:
https://www.dropbox.com/s/etd3t6ddizy13 ... .capx?dl=0
B
38
S
10
G
9
Posts: 212
Reputation: 6,995

Post » Sat Jan 21, 2017 9:08 pm

I see what you mean. The boxes can have different states: floating. Floating= -1 means the box is on the floor with water from below. 0 is a box that is pushed in the water. They changed the state, depends what happend. Other states has to be added for other possibilities, like pushing a box out of the water. The box floats because the gravity is 0. :)

I will make comments in the capx what the events do. So you can alter it like you want.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sun Jan 22, 2017 10:08 am

Now the with comments:
https://drive.google.com/uc?export=down ... kNkX0JUd1k

The problem is if you want to much, it will get too complicated with too much side effects. The Platform-Behavior isn't really designed for this and you can get very funny side effects. There will be a point where the physic-behavior is easier to use.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sun Jan 22, 2017 8:15 pm

@Asmodean Thanks again for your help and kindness ! I will try to understand thid and modify it as I need for my project.
B
38
S
10
G
9
Posts: 212
Reputation: 6,995

Previous

Return to How do I....?

Who is online

Users browsing this forum: Cryttexx, farsen, gskunk, Kyu, Yahoo [Bot] and 47 guests