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
249
Posts: 3,764
Reputation: 138,579

Post » Sun Feb 21, 2016 12:58 am

More of a feature request.
@Yann What are we doing tonight?
Image ImageImage
B
171
S
50
G
180
Posts: 8,397
Reputation: 113,988

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
94
S
33
G
114
Posts: 5,361
Reputation: 73,783

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
68
S
22
G
14
Posts: 1,485
Reputation: 16,561

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
249
Posts: 3,764
Reputation: 138,579


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest