About Sine and Bullet behavior.

Get help using Construct 2

Post » Sat Feb 08, 2014 8:42 am

I have bullet background and obstacles with sine behavior object. When obstacles moved left, I saw they're slower than moved right because their speed was subtracted from bullet background.

How can I fix this problem?
B
3
Posts: 1
Reputation: 177

Post » Sat Feb 08, 2014 9:55 am

If you are doing what I think...

Change the sine movement from horizontal to value and add this value to the x position of your sprite. (Capx to follow)
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Sat Feb 08, 2014 10:27 am

Bit more complicated than I first thought - this method works providing the bullet speed is not too high.

test of sine movement combined with bullet. starfiels particles

if you need the bullet speed higher and still have this "sine movement wobble" then I think multiplying the sine movement when moving against the bullet movement (to counteract the bullet movement) would be the way to go...
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests