Hi, I'm trying to use transform to achieve to and fro movement for a particular object. When the object hits the transform, I'm changing the scale and linear velocity. My object grows in size instead if flipping. Can any one help?
@harshann I believe you should try setting the scale the same, but just add a negative sign (-) (assuming BB1) How to get an object moving from right to left and back using Logic: Transform 1. Set your object to fixed. Have this positioned to the right of the screen as the starting point for movement. 2. Set Linear Velocity to -10.000,0 (this will start the object moving to the left). 3. Drag a Logic: Transform item onto game positioned to the left of your object where you wish the object to move to. 4. Set Scale Modifier the same as your object but preceded by minus aka: -0.400 if your object scale is 0.400 (this “flips” the object to point to the right). 5. Set Linear Velocity Modifier to 10.000 (this is now a positive number to move the object to the left). 6. Set Affected asset to the object you wish to move from the list. 7. Set Affect operation to ‘Replace’ 8. Now duplicate the logic (press d). 9. Move the Logic: Transform item to the right of the object (ensure IT IS NOT TOUCHING THE OBJECT otherwise this logic item will immediately affect the object when game play starts) 10. Set Scale Modifier to 0.400 (this “flips” the object to point to the left). 11. Set Linear Velocity Modifier to to -10.000 (this is now a negative number again to move the object to the left).