simple but also complicated question:
Is there any way to use compare global variables into CSS in C2?
I want to change the cursor style depending on a variable.
Yeah, I'm aware of the Cursor: set style action, but that doesn't include "not-allowed" as of yet, and that's what I need...
If there's another way to do this apart from CSS, I'm fine with that too.
Develop games in your browser. Powerful, performant & highly capable.
Can you explain a bit more? I don't get what you want under compare global variable into CSS.
Well, I want to set the cursor property to "not-allowed" on an object if [value] = 1.
If [value] = 0, I want to set the cursor style to "normal".
This would be possible without CSS, if there was an action to set the cursor style to "not-allowed" inside C2.
https://dl.dropboxusercontent.com/u/166 ... r_css.capx
glerikud Thanks for your answer, unfortunately, I'm not able to download r240 atm, because of internet issues.
But I'll have a look at it asap.
Take your time Just let me know how that solution worked out for you.
Just looked through your .capx.
Awesome! Thanks! Short code, big result.
I'm glad I could help. Happy developing.