# Change opacity after valid click

**URL:** https://discourse.psychopy.org/t/change-opacity-after-valid-click/40146
**Category:** Builder
**Created:** [May 25, 2024, 1:05am UTC](https://discourse.psychopy.org/t/change-opacity-after-valid-click/40146 "2024-05-25T01:05:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![isiahespiritu](https://avatars.discourse-cdn.com/v4/letter/i/13edae/32.png) [@isiahespiritu](https://discourse.psychopy.org/u/isiahespiritu)
#### Post date: [May 25, 2024, 1:05am UTC](https://discourse.psychopy.org/t/change-opacity-after-valid-click/40146/1 "2024-05-25T01:05:59Z")

</div>

[Experiment Test Run.psyexp](https://discourse.psychopy.org/uploads/short-url/wNNzEFIxzDoN1PzMGvewbxLIlzh.psyexp) (53.1 KB)

Hi! I am trying to make a code component so that the opacity of my polygon will change from 0 to 0.5 after my mouse component clicks on the polygon. After that there will be a delay before it moves on to the next block in my loop. I am having trouble making the opacity change after the mouse clicks on the polygon. Can someone help me adjust my code please?
