How do I apply Sine AND Physics?

Get help using Construct 2

Post » Sat Jun 25, 2016 11:21 am

For some reason, Sine doesn't work with Physics very well - at all, actually.

If I have an object with Sine enabled, and decide that I want to enable Physics in order to make the object fall, the physics won't work. It'll continue to sine, but the object won't fall.

Any tips? Is this unavoidable? I've double-checked with multiple items, including newly-created objects unassociated with any events in the game.
B
25
S
10
G
1
Posts: 154
Reputation: 2,687

Post » Sat Jun 25, 2016 11:45 am

Sine will over-ride the physics behaviour - but at the same time still be affected by forces applied to the object (like getting collided into by another physics object).

In order for SINE to actually work, of course it will have to bypass things like physics gravity, etc, or else nothing at all would happen.

What are you trying to make that needs SINE as well as PHYSICS applied to it? If you need something to simply "bob up and down" you can just apply some physics forces to a physics object to make the same effect - but without causing any interruption to normal physics behaviour.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri May 19, 2017 5:26 pm

del
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Kin, mickclarke, TRMG and 43 guests