How to do a Regular Button Get Smaller when pressed?
artlover
Member, PRO Posts: 16
(Please See image above)
I just have this question for now, How to do a Regular Button get Smaller when pressed, will back to Regular size again and go to the "next scene...etc"?
Thank you in advanced to those who will answer me, it will be a big help
Have a nice day!
Comments
Two ways to do it:
when: pressed, change image to: X otherwise: change image to: Y
. In the X image, make the button smaller, with more transparency on the sides.when: pressed, change self.height to: 80 otherwise: change self.height to: 100
. Same for the width. 80 and 100 are just examples. Use sizes that make sense in your project.Your central power symbol (the circle with the line intersecting at the top) is off centre - to the right.
I'd also be tempted to centre the circle element of the symbol within the height of the surrounding button, and let the intersecting line fall where it falls.
Hope that makes sense !
[/pedantry]
Quick demo of pHghost's method 2 . . . . (attached)
Oh!!! Thank You So Much pHghost & Socks (specially for the demo file!) I Highly appreciate your help! Thank you for helping a beginner like me. Good luck and more power to you both