How do I add HTML button?

Get help using Construct 2

Post » Sun Jun 11, 2017 4:15 pm

Hi, I want to add some HTML code to create a button, is this possible?
This is the code:

<button
class="cart-add-item"
data-item-id="1"
data-item-name="example"
data-item-price="3.00"
data-item-weight="100"
data-item-url="http://example.com/products/example"
data-item-description="Just an example">
Buy Example
</button>
Image
B
38
S
10
G
2
Posts: 66
Reputation: 2,823

Post » Sun Jun 11, 2017 4:23 pm

You cant add buttons using HTML, but you can use the button plugin to place the button on the screen, and you can keep all the date you need for it in instance variable, you can also style the button using css.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests