Global anims on title screens

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
User avatar
Eizzoux
Posts: 567
Joined: Wed Oct 30, 2013 5:32 am
Location: Russia
Contact:

Global anims on title screens

Post by Eizzoux »

There's a little problem with global anims being drawn on title screens. Their default position (0;0) is the same as the position of playfield (6;6), and they can be only drawn in the 548x548 area (in the boundaries of playfield). I tried to put door sprites in this little level set on their intended positions (positions of viewport.door_1 and viewport.door_2) and also set original border as the title background. And, as you can see, these door sprites are not visible just because they're out of playfield boundaries.
tog_title_anims.rar
(692 Bytes) Downloaded 180 times
𒈟
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: Global anims on title screens

Post by Holger »

The issue here is that global animations are displayed within the playfield area by default, so they get clipped outside.

This can be changed using the following additional directives in your graphics config:

Code: Select all

global.anim_1.TITLE.class: window
global.anim_2.TITLE.class: window
global.anim_3.TITLE.class: window
global.anim_4.TITLE.class: window
(You can also use "border" instead of "window", which has exactly the same effect.)

And, voila, it works as intended. :)

Probably the default for title screens should be "window" instead of "playfield"...

Another little bug is the line "viewport.playfield.TITLE.width:660", which is ignored -- playfield can only be defined for all screens (no suffix), for "MAIN", "SCORES", "EDITOR" and "PLAYING". This should probably extended to support all screen names.
Post Reply