In C2 you could assign a Button with a background-image by loading an image from a project file
In C3 this does not work, How do I use format/escape this in C3?
Cheers
Did you try just using the file name?
Url() might get real finicky with quotes btw.
Did you try just using the file name? Url() might get real finicky with quotes btw.
I have tried without quotes with double quotes, escaping the . like with json, it works with my c2 version, but not in c3.
I will post a c2 example file in a while.
Try this in c2, then import into c3
https://www.sizzle-games.com/css_card.capx
Changing the name to "cardback.jpg" no longer gives any error in developer tools, but it doesn't show any texture either.
I'm guessing it's a preview issue.
Also running into an issue where I can't seem to click in between letters, and it only highlights text or letters.
Changing the name to "cardback.jpg" no longer gives any error in developer tools, but it doesn't show any texture either. I'm guessing it's a preview issue. Also running into an issue where I can't seem to click in between letters, and it only highlights text or letters.
Ok thanks for looking, I might file a bug report, if no solution is found.
Develop games in your browser. Powerful, performant & highly capable.
Update
Its a preview problem, it works perfectly after exporting.
Ahh I guess the folder structure doesn't exist yet.
Ashley any recommendations for preview?
Setting a background image to url(cardback.jpg) will request preview.construct.net/cardback.jpg in preview mode. Your file is not available there. Once you publish your game the URL will work since your game is fully uploaded. It's a known issue with preview mode, hopefully you can just ignore it until publishing.