Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
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.
'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
Develop games in your browser. Powerful, performant & highly capable.
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.