Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
Hello, the sine behavior does not allow reference to the current speed at which the object moves.
So, how do I get the current speed at which the object with the sine behavior is moving?
The object is moved by the sine behavior in horizontal.
Develop games in your browser. Powerful, performant & highly capable.
'Period' is the time the objects needs to complete a full movement back and forth. So you could call it "Speed".
Well I do not understand how I can get the current speed over time
If I'm not wrong then that's how it is: Magnitude is the distance in pixels from the center to the amplitude. The magnitude is covered 4 times in one period. At magnitude 50 e.g. Start center to amplitude right = 50, from right to left = 100, from left to center = 50. This adds up to 200 pixels in x (= Period) seconds. So "4 * Magnitude / Period" should give you the pixels per second.
Correct me if I've twisted something.