Parameters similar to StageHeight & StageWidth

Get help using Construct 2

Post » Tue Jul 16, 2013 7:06 pm

Hi, are there any parameters similar to Flashs StageHeight and StageWidth? Something like CanvasWidth and CanvasHeightW
WindowHeight and WindowWidth doesnt work for me on the Scale Outer mode. LayoutWidth and LayoutHeight doesnt work too.
I need to spawn some enemies on the end of the screen, no matter if the window size the player is using.

Thanks
B
38
S
8
G
3
Posts: 439
Reputation: 6,876

Post » Tue Jul 16, 2013 7:48 pm

hey, there are some useful expressions you can use..

viewportright("layername")

Returns the x coordinate of the far right edge of whichever layer, regardless of a resized window.

and as you've probably guessed there is viewportbottom / left / top aswell

B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Jul 16, 2013 9:36 pm

Yay, thanks @keepee, thats exactly what i was looking for ;]
B
38
S
8
G
3
Posts: 439
Reputation: 6,876


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], pokka, robopunch and 5 guests