How can I do this

Get help using Construct 2

Post » Sat Nov 19, 2016 7:10 pm

Hello, I am trying to make sine my black object, but the two objects have physical and when the black object moves the red object falls ...
How can I fix it so that the red object accompanies the black?
Image
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sat Nov 19, 2016 10:00 pm

Do you want both objects to move simultaneosly?
If so, simply assign a sine behaviour to the red object aswell, with the same parameters and start both behaviours at the same time.

If you could state the context in which you want to use the sine behaviour (platform, obstacle), we could help better.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sat Nov 19, 2016 10:02 pm

The black has sine and physics behavior moving in horizontal manner? Why not make it solid object instead physics object?
ImageImage
B
108
S
49
G
23
Posts: 783
Reputation: 22,611

Post » Sun Nov 20, 2016 9:47 am

That already try to do and it works, but when the red object falls, it falls perpendicular and does not seem very real, since when you fall in movement you do not fall straight, it goes towards the sides
I do not know if you understand me...
PD: Need to be physical since my game is like this

Sorry for my english :(
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sun Nov 20, 2016 10:08 am

I made an example, if I put sine to the two objects when the red object falls to the second black object, the red object is stopped. :x
Can someone fix the capx? Without using sine is it possible?
Image
https://www.dropbox.com/s/q25kexvs7b9bwl0/sine.capx
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sun Nov 20, 2016 2:39 pm

:?
B
11
S
5
G
1
Posts: 410
Reputation: 2,802

Post » Sun Nov 20, 2016 3:27 pm

cesarzevil wrote::?


It's a Sunday - please give users a chance to notice your post.

In the meantime, you might want to think about updating your version of C2 from r227, There have been many, many changes in the past 6 months.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,416
Reputation: 59,518

Post » Sun Nov 20, 2016 4:05 pm

Set block & black bars in physics properties:
- immovable to no
- density and friction to 1
- prevent rotation to yes for bars, no to block

And you don't really need apply sine behavior for the block.
ImageImage
B
108
S
49
G
23
Posts: 783
Reputation: 22,611

Post » Sun Nov 20, 2016 6:13 pm

It works thanks :D
B
11
S
5
G
1
Posts: 410
Reputation: 2,802


Return to How do I....?

Who is online

Users browsing this forum: Microbex, PROxMTswatTR and 12 guests