How do I sines, circle movements,etc... with maths

Get help using Construct 2

Post » Fri Sep 08, 2017 10:48 am

I know i can use 2 sine behaviours and make one horizontal and other vertical with same values to make an object moves in a circle but i'm looking any math expresions to do all that in events so i can apply to sprites, effects, layouts or whatever.

Also know the Sine behaviours have a "value only" but i want do the maths in events to have more flexibility in use this values.

For example i already have the maths for a ScreenShake if somebody needs:
max(0, screenShake/1.1 - 0.01) ["ScreenShake" is the number of power]

Is really useful to use with the layout angle or scale and make the screenshake more spectacular or with effects like RGBA channel separation on colisions.

So, i'm looking maths to do things like that, sines, circle movements or any other things so i can make my own movement system with instance variables to apply on sprites.
B
30
S
12
G
3
Posts: 683
Reputation: 5,108

Post » Fri Sep 08, 2017 11:23 am

Circular movement ("droid" sprite rotating around "center" sprite):
Image
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
155
Posts: 2,201
Reputation: 82,483


Return to How do I....?

Who is online

Users browsing this forum: Cassianno and 2 guests