C2 game into wordpress

Discussion and feedback on Construct 2

Post » Tue Feb 19, 2013 6:40 am

hey guys,
i havent been very active here as i started working on my website. I would like to know if it is possible to insert a C2 game in a wordpress run website ? and how?
THANKS IN ADVANCE
B
20
S
8
G
2
Posts: 122
Reputation: 3,202

Post » Tue Feb 19, 2013 7:17 am

@ash1221 My first thought would be a iFrame...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Tue Feb 19, 2013 7:17 am

If you use HTML format, simply copy <div id="c2canvasdiv"> to last </script> from exported HTML5 game.

EDIT:
Also use iFrame is recommended @BluePhaze mentioned it.Joannesalfa2013-02-19 07:19:05
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,646

Post » Tue Feb 19, 2013 7:23 am

Yea, definitely iFrame. For example, we got this working:
http://www.oneandahalfbeards.com/barrels-bulls/

with just this one little line:

[iframe src="http://www.oneandahalfbeards.com/CurrentBuild/" width="1024" height="768"]
B
20
S
10
G
4
Posts: 106
Reputation: 4,219

Post » Tue Feb 19, 2013 7:49 am

Yup. We're using the iframe plugin By webvitaly on our site, and it works great.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Tue Feb 19, 2013 2:51 pm

I also wondered about wordpress. I figured an iFrame would do the trick but this confirms it. Thanks guys.
B
29
S
5
G
5
Posts: 39
Reputation: 5,991

Post » Tue Feb 19, 2013 4:37 pm

thanks a quadrillion for the contribution.
i noticed that when @BluePhaze posted @Ash1221 then i didn't get notified specifically about that.
B
20
S
8
G
2
Posts: 122
Reputation: 3,202

Post » Thu Feb 21, 2013 3:26 pm

im still left in the dust in how to use the iframe, could someone please show me a tutorial or something
(i know what an iframe is)
B
20
S
8
G
2
Posts: 122
Reputation: 3,202

Post » Thu Feb 21, 2013 6:17 pm

@ash1221

If you install the plugin I mentioned earlier, you simply need to create a new page/post with the following short code in it:

[iframe src='<URL to your game>' width='<width of your game>px' height='<height of your game>px']

That's it.
B
26
S
8
G
3
Posts: 210
Reputation: 5,973

Post » Fri Feb 22, 2013 12:56 pm

thanks a lot @theubie
B
20
S
8
G
2
Posts: 122
Reputation: 3,202

Next

Return to Construct 2 General

Who is online

Users browsing this forum: tomi71 and 11 guests