SpriteFont optimization breaks use with Paster

Report Construct 2 bugs here.

Post » Sun Feb 21, 2016 12:37 am

Problem Description
A common trick is to draw off screen with R0J0hound's Paster plugin. However, the SpriteFont plugin has an optimization that prevents it from drawing characters if they are outside of the Viewport.

Attach a Capx
http://www.blackhornettechnologies.com/ ... r_bug.capx

Description of Capx
With Paster partially off of the viewport, and a Spritefont on top, paste the Spritefont into Paster, then move the Paster object over so you can see that the Spritefont text gets clipped.

Observed Result
Text gets clipped

Expected Result
I propose a simple property that would turn off the optimization so that Spritefont can be use offscreen with Paster.

Affected Browsers
N/A

Operating System and Service Pack
N/A

Construct 2 Version ID
221
ImageImageImage
B
71
S
22
G
288
Posts: 3,862
Reputation: 158,430

Post » Sun Feb 21, 2016 12:58 am

More of a feature request.
@Yann What are we doing tonight?
Image ImageImage
B
178
S
50
G
206
Posts: 8,685
Reputation: 127,713

Post » Sun Feb 21, 2016 3:38 am

It's the same with particles and tilemaps too as I recall. It could be nice to be able to disable the visibility culling, but it's done per plugin and probably will run into performance issues with some users.

The workaround is to move the object onscreen before pasting it, which I suppose could also be done by the paster plugin...
B
100
S
38
G
134
Posts: 5,555
Reputation: 85,323

Post » Sun Feb 21, 2016 12:30 pm

@newt I dunno, maybe a pizza or a burger somewhere close by, my fridge is quite empty today.
B
71
S
22
G
14
Posts: 1,494
Reputation: 16,660

Post » Sun Feb 21, 2016 11:22 pm

@R0J0hound In my case, I'm actually drawing into an area much larger than the viewport, so even moving things on-screen would not help in this case.
ImageImageImage
B
71
S
22
G
288
Posts: 3,862
Reputation: 158,430


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests