WindowWidth/WindowHeight not correct. r91

Bugs will be moved here once resolved.

Post » Wed May 23, 2012 12:50 pm

When I opened my old game I noticed that some of my anchor behaviours were missing and when my game uses create object X=WindowWidth/2 and Y=WindowHeight/2 it's no longer in the middle. This happens only when using fullscreen.nemo2012-05-23 12:55:03
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Wed May 23, 2012 1:27 pm

I have exactly the same problem with Fullscreen(scale mode) in R91.

Went trought all my 20+ prev. versions of my capx files, all made the same error when tested/exported in R91.
B
19
S
5
G
4
Posts: 109
Reputation: 4,195

Post » Wed May 23, 2012 2:49 pm

I'm sure WindowWidth and WindowHeight are correct. Are you sure it's not to do with the parallax change in r91?
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228

Post » Wed May 23, 2012 4:52 pm

@Ashley This is possibly due to the parallax change. I reversed back to r90 cause I don't really understand how it has changed and how to keep objects centered if 0,0 is no longer in the mid depth.
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Wed May 23, 2012 5:43 pm

The next build has ViewportLeft, ViewportRight, ViewportTop and ViewportBottom expressions. You'll be able to use these, e.g.:

Set X to (ViewportLeft("Layer") + ViewportRight("Layer")) / 2
Set Y to (ViewportTop("Layer") + ViewportBottom("Layer")) / 2
Scirra Founder
B
357
S
214
G
72
Posts: 22,946
Reputation: 178,228


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests