how do i get an object to oscillate back and forth (i.e. if i have an enemy on a platform, how do i get it to go back and forth from side to side)?
any suggestions...
You could try to use the "Move the MovingPlatform object according to a formula" that can be found in your Construct 2 examples folder. I believe it is the Platform 6 example.
You can have it keep moving until it encounters an obstacle, in which case it turns around. You can use solid (other enemies, walls etc.) or invisible sprites (in case of hanging platforms so they don't fall down).
thanx
Mipey your suggestion was functional enough for me
Wink i'll play around with the formula and see what i come up with
Develop games in your browser. Powerful, performant & highly capable.
to make it move nice and smoothly, apply this formula to the X value every tick to move it side to side:
(distance from left edge + modifier * sin(time*modifier))
Play around with the modifier values to get it to move faster and / or further.