Full Screen Button

Get help using Construct 2

Post » Thu Mar 08, 2012 7:50 pm

Hi, I'm working on a full screen button, but I need to hide the objects outside of the layout...I fix the draging action on 1 object according the scale :D

How do I hide the objects outside the layout?

Escala.capx

christianl862012-03-08 19:51:27
B
4
G
1
Posts: 30
Reputation: 685

Post » Thu Mar 08, 2012 8:08 pm

I just tried adding a jquery script to resize the canvas and it appears to work. I'll upload it in a minute.
B
10
S
5
G
1
Posts: 37
Reputation: 1,631

Post » Thu Mar 08, 2012 8:17 pm

thanks :D I'll Wait
B
4
G
1
Posts: 30
Reputation: 685

Post » Thu Mar 08, 2012 8:25 pm

@twdead

That would be awesome!
B
56
S
20
G
13
Posts: 778
Reputation: 13,204

Post » Thu Mar 08, 2012 8:50 pm

This is what I got so far:

http://dl.dropbox.com/u/349494/c2project0/resize.html

It isn't total fullscreen because you'd either have to stretch the canvas out to cover everything or have scrollbars I think, so this is the best I could do to keep the canvas proportional. Hitting the fullscreen text will make it resize vertically to the dimensions of the window and escape will move it back.

The code for it is at the bottom of the html file where the runtime code is, it's just a few lines.

Also apparently it doesn't work properly in IE. So give me a few more minutes to figure that out and it should work fine. twdead2012-03-08 22:34:50
B
10
S
5
G
1
Posts: 37
Reputation: 1,631

Post » Thu Mar 08, 2012 9:00 pm

@twdead

We have a few minutes

Really nice!
Im definitely going to use it often.Savvy0012012-03-08 21:01:25
B
56
S
20
G
13
Posts: 778
Reputation: 13,204

Post » Thu Mar 08, 2012 9:18 pm

ok seems to work in IE now.

If you want to see it completely in fullscreen find

while( ch < $(window).height() ){


and change .height() to .width(). No real way to use that yet but it might be interesting to play with ...
B
10
S
5
G
1
Posts: 37
Reputation: 1,631

Post » Thu Mar 08, 2012 10:16 pm

@twdead

Thanx!
It could be something for the how to page of @Kyatric
B
56
S
20
G
13
Posts: 778
Reputation: 13,204


Return to How do I....?

Who is online

Users browsing this forum: vargazso and 25 guests