sine wave (construct 2)
Apparently, I had a need to create a scene where the X position of consecutive objects was determined with sine function. Simultaneously, objects were moving from top to bottom, keeping their X position all the time until they exit the screen. Please see sine wave demo (html5) to get an idea what I was trying to do. ( not available anymore ) The ready-made "Sine" function of Construct 2 was not suitable in this case, because I did not want to make the series of objects to look like a worm. :) Task is not too complicated and math it pretty easy, but anyways I decided to create an example showing my solution. If you are not willing to download .capx from my own server, the screenshot below shows the most critical points to implement this behavior: Basically, you will need following events and variables to make things working: xPosDelta determines the "steps" in which the objects are created. You can try to change the value o...