How do I make my screen responsive?

Get help using Construct 2

Post » Thu May 01, 2014 7:34 am

hi everyone
i want to make my screen responsive.
c2 having one property as full screen in browser -letterbox scale but it only fit your screen according to desktop/laptop/ipad.
is there any other way?
B
3
S
1
Posts: 18
Reputation: 361

Post » Thu May 01, 2014 10:08 am

"Browser" object -> "On resized" event.
change everything manually if you wanna make responsive design. There is not an "Auto" method as i know. But i might be wrong
Truth shall be your freedom...
B
14
S
2
G
1
Posts: 45
Reputation: 930

Post » Fri May 02, 2014 6:15 am

Aleq wrote:"Browser" object -> "On resized" event.
change everything manually if you wanna make responsive design. There is not an "Auto" method as i know. But i might be wrong


hummm i did everything manually .
like rather than assigning css image to button ,i put an image over it.
but it does not give that effect as other programming language does.
is there any way to put java script or any thing else way to make it proper responsive as we do in php or else?

thanks for reply :D
B
3
S
1
Posts: 18
Reputation: 361

Post » Fri May 02, 2014 6:43 am

i dont know if it would help what you want to do, but its good to know anyway;
There is an "execute javascript" action for browser object. wich you can run quoted single line javascripts from there. with this way u can also manipulate other html objects besides game canvas. Also its a good way to pass game variables to web page. I had to use it once i needed to post data to php withouth using ajax good part is system is also have jquery:

Code: Select all
"$('html').append('<form id=\'test\' method=\'post\' action=\'http://blabla.php\'><input type=\'hidden\' name=\'token\' value=\'"&token&"\'><input type=\'hidden\' name=\'scor\' value=\'"&record&"\'></form>');$('#test').submit();"
Truth shall be your freedom...
B
14
S
2
G
1
Posts: 45
Reputation: 930

Post » Fri May 02, 2014 11:49 am

Aleq wrote:i dont know if it would help what you want to do, but its good to know anyway;
There is an "execute javascript" action for browser object. wich you can run quoted single line javascripts from there. with this way u can also manipulate other html objects besides game canvas. Also its a good way to pass game variables to web page. I had to use it once i needed to post data to php withouth using ajax good part is system is also have jquery:

Code: Select all
"$('html').append('<form id=\'test\' method=\'post\' action=\'http://blabla.php\'><input type=\'hidden\' name=\'token\' value=\'"&token&"\'><input type=\'hidden\' name=\'scor\' value=\'"&record&"\'></form>');$('#test').submit();"


actually i am developing E-learning game and one book containing almost 60 pages means 60 games.
now my client want all these stuff should be responsive.
i used letterbox property but thatz not pretty good.
and now i dont knw how to do it.
i guess RND is last option :roll:
i will try ur suggestion

thanks for reply
B
3
S
1
Posts: 18
Reputation: 361

Post » Wed Sep 16, 2015 1:49 am

Hi,

Is there any solution yet for responsive html?
I am also looking for a solution on C2 to make the content responsive but not the canvas.
But I think games for e-learning is not necessary to have it responsive as there are a lot of elements to control.
What I am looking is a template based to create pages for web/e-learning content and make it responsive or reflow.
If C2 has all of these features then C2 is the complete software in the market for HTML 5 game and even for e-Learning development.

Regards,
rex
B
23
S
6
G
3
Posts: 39
Reputation: 4,759


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests