greenpress | a design theme for Octopress | Theme library
kandi X-RAY | greenpress Summary
kandi X-RAY | greenpress Summary
a design theme for Octopress.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of greenpress
greenpress Key Features
greenpress Examples and Code Snippets
Community Discussions
Trending Discussions on greenpress
QUESTION
I am currently creating a game based on the game "Simon Says" where the user has to press coloured buttons in the same order that the application showed previously. The sequence keeps getting longer and longer making it more and more difficult. I designed buttons in Illustrator (4 coloured buttons with both a pressed state and a normal state, so 8 images). I currently have 4 buttons and connected the normal state images to it. I now want to create an animation to change between the normal and pressed state to briefly show the user the button he needs to press and then to change back to it's normal state to show the next button the user needs to press in the sequence.
Here is my code:
...ANSWER
Answered 2018-Aug-14 at 17:13You have to again reset the orignal image in completion
of the animation, because you are setting
the image. The animation may go back and forth, but the assigment has not been undone.
But before that you should animating the alpha value of the button inside the animation block. I don't thinking setting an image results in animation. Try this logic.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install greenpress
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page