Object in front iframe

Discussion and feedback on Construct 2

Post » Sat Feb 13, 2016 6:49 pm

Hello , I need to know How Colcar hum sprite of a front hum iframes. Can someone help me? :shock: :D
B
8
S
2
G
1
Posts: 20
Reputation: 1,051

Post » Sun Feb 14, 2016 6:14 am

I've never used it but one way would be to have the iframe behind the game's canvas. You'd need to make that part of the canvas transparent so the iframe would show through. That might make any clicking of the iframe not work though.
B
85
S
27
G
85
Posts: 5,063
Reputation: 57,860

Post » Mon Feb 15, 2016 1:13 am

if not bug you could show me an example. Because I've tried everything. I would be very grateful @R0J0hound.
B
8
S
2
G
1
Posts: 20
Reputation: 1,051

Post » Mon Feb 15, 2016 2:26 am

I thought it is almost impossible, since HTML element is in front of all sprites always.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Mon Feb 15, 2016 7:35 am

@scorepixel
I've never done it and I don't have time to figure it out exactly but based on a quick google search and from what I recall seeing before you should be able to use css to change the z index of an html5 element.

@rexrainbow
The idea is to move the html element underneath the canvas, which should be possible.
B
85
S
27
G
85
Posts: 5,063
Reputation: 57,860

Post » Thu Mar 31, 2016 7:57 pm

Actually using css is possible to place an iframe underneath a sprite @rexrainbow @R0j0hound
B
8
S
2
G
1
Posts: 20
Reputation: 1,051

Post » Thu Mar 31, 2016 8:13 pm

Are you saying it is, or are you asking how?
B
85
S
27
G
85
Posts: 5,063
Reputation: 57,860

Post » Fri Apr 01, 2016 12:55 am

@scorepixel

Thanks. Set zindex
Code: Select all
object.style.zIndex

can place the canvas object in front of iframe, but all sprite/tilemap, tilebackground objects are put in the same canvas object, they are in front or behind iframe together.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Fri Apr 01, 2016 1:54 am

is really it. using css @rexrainbow
changing a little the subject u know how to publish a game in facebok?
B
8
S
2
G
1
Posts: 20
Reputation: 1,051

Post » Fri Apr 01, 2016 2:35 am

@scorepixel

Sorry, I don't know, you might ask other users.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests