Problem with layer rotation and Zoom

New releases and general discussions.

Post » Tue Jan 27, 2009 10:00 am

Heya,

I'm trying to rotate my "screen" during game (a specific layer in fact).
I tried to deal with "Set layer angle" and "Set display angle" actions triggered by time events ("timer is equal to X" and "Every X milliseconds"), but nothing happen... is there something wrong ?

Now about zoom, i tried to bind zoom option with mouse wheel like that :
On mouse wheel up -> Set Layer 1 zoom ratio to (LayerZoomX(1)+1, LayerZoomY(1)+1)
On mouse wheel down -> Set Layer 1 zoom ratio to (LayerZoomX(1)-1, LayerZoomY(1)-1)

But it don't work.

I tried with Zoom Offset, but my Construct got a bug :
I've got 3 elements in the form :
Layer Name or Number
X Ratio
Y Ratio

The problem is : Construct use the "Layer Name or Number" instead of "X Ratio"

So, when i fill form like this :
Layer Name or Number : 1
X Ratio : LayerZoomX(1)+1
Y Ratio : LayerZoomY(1)+1
It gives : "Set Layer 1 zoom offset to (1, LayerZoomY(1)+1)" !
B
7
G
3
Posts: 46
Reputation: 1,581

Post » Tue Jan 27, 2009 10:24 am

[quote:1857qbvy]I'm trying to rotate my "screen" during game (a specific layer in fact).
I tried to deal with "Set layer angle" and "Set display angle" actions triggered by time events ("timer is equal to X" and "Every X milliseconds"), but nothing happen... is there something wrong ?[/quote:1857qbvy]

Did you make sure to leave enough room for the layout to rotate? If there isn't any space around the edge, there's no room to rotate the display.

Alternately, you could check "Unbounded scrolling" in the Layout Properties, and the display will be able to rotate freely.

Edit:
It appears that there is a problem with using layer numbers for the zoom. It works fine with layer names though. For instance:

On mouse wheel up -> Set Layer "Foo" zoom ratio to (LayerZoomX("Foo")+1, LayerZoomY("Foo")+1)

Seems to work fine.

Also, you will need to make sure you have enough room to zoom the display, same as rotating. The layers will zoom in properly, but not out, unless there is enough space on either side, or as mentioned before, if you have "Unbounded scrolling" checked for the layout properties.

Also, these types of threads belong in Help/Tech.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Tue Jan 27, 2009 1:57 pm

Thx for help, i'll try.

(Yeah sorry about that, i see after that i was in wrong topic :/)
B
7
G
3
Posts: 46
Reputation: 1,581


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests