pjau Posted July 14, 2016 Share Posted July 14, 2016 Hi guys. So I have an image which I currently increase and decrease in size via a timer, but currently it increases the height at the top and the bottom. I only want to increase the height at the top. function updateBreathing() { counter += 1; if (counter <= 10) { myimage.height -= 1; } else { myimage.height += 1; if (counter == 20) { counter = 0; } } } Any help would be great! Link to comment Share on other sites More sharing options...
Tom Atom Posted July 15, 2016 Share Posted July 15, 2016 Set its anchor Y to 1: myimage.anchor.y = 1; Link to comment Share on other sites More sharing options...
pjau Posted July 15, 2016 Author Share Posted July 15, 2016 Thanks, it works perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts