How should I structure a project to take advantage of CSS?

Get help using Construct 2

Post » Thu Aug 10, 2017 2:40 pm

So I know that I can use CSS to style buttons and entry fields. No problems there. But lets say I want to have design elements like squares be styled? Usually I would use a sprite or tile or tileset, but if I want to style them through CSS this isn't really an option from what I understand.

Additionally, is there anyway I can style text through CSS in construct2?

Thanks!
B
9
Posts: 11
Reputation: 347

Post » Thu Aug 10, 2017 4:41 pm

CSS is used to style DOM elements. Sprites and Text objects both aren't DOM element, so tough luck I guess. :|
B
74
S
31
G
26
Posts: 994
Reputation: 20,198

Post » Thu Aug 10, 2017 5:41 pm

Did not actually know that text in construct2 was handled that way, but I assumed as much regarding the sprites.

Let me try asking the question this way: If I want to draw a rectangle in my construct project that is then styled through CSS, how would I do that?
B
9
Posts: 11
Reputation: 347

Post » Thu Aug 10, 2017 5:52 pm

Well, if you don't mind 3rd party plugins, Pode HTML Pack comes to mind, especially the DIV plugin.

Otherwise, maybe you could use a disabled text-area and fiddle with its CSS so it looks like a simple rectangle.
B
74
S
31
G
26
Posts: 994
Reputation: 20,198

Post » Thu Aug 10, 2017 8:09 pm

Thanks I will definitely take a look at that.
B
9
Posts: 11
Reputation: 347


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests