Hello,
I read through the scripting reference documentation but am not finding what I need.
What I would like to do is this:
- Determine if the mouse is over object A
- If yes, enable effect "Brightness"
- Also set effect "Brightness" parameter 0 to 80
- Else, if the mouse is not over object A, disable effect "Brightness"
So far, I am able to do this using the visual programming language of Construct3.
I would like to be able to do this using JavaScript.
I suppose I could use getMousePosition to get [x,y] and then check if the values are within the range of the object's coordinates?
Then, how do I get the effect and set parameter 0 for "Brightness"? So far I have not found a way.