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
23
S
10
G
3
Posts: 545
Reputation: 4,442

Post » Fri Sep 08, 2017 11:23 am

Circular movement ("droid" sprite rotating around "center" sprite):
Image
Check out my awesome game Doptrix
B
17
S
8
G
8
Posts: 171
Reputation: 5,829


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, marcinkowski, Shenkai the ssj and 23 guests