scrolling and filtering question..

For questions about using Classic.

Post » Sat May 16, 2015 5:13 pm

I have been working with linear filtering on my game and decided to switch over to point filtering as the graphics were a little blurry, however the scrolling was juddery - is there any method to prevent this?

I would really like to switch over to point filtering as it looks SO much better and crisper, but the scrolling just looks awful..

My scrolling varies in speed , but on the whole relatively slow based on a 2D camera..

Any assistance or explanations into the reason so I better understand would be appreciated!

thanks!
B
11
S
4
G
5
Posts: 171
Reputation: 2,446

Post » Sun May 17, 2015 1:37 am

You can try to round your scrolling to integer values if you are using events to scroll (don't use the "Center view on me" attribute).
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
119
S
41
G
17
Posts: 2,211
Reputation: 19,634

Post » Sun May 17, 2015 4:10 am

Ah, yes..I am using center view on me.. What are my alternatives? And what is it the CVOM option does that makes it do that?
B
11
S
4
G
5
Posts: 171
Reputation: 2,446

Post » Sun May 17, 2015 6:29 am

I'm mostly just guessing but odds are center view on me will scroll to your object position (which can be less than a whole pixel) even when in point filtering, so your option instead is the System action "Scroll To Position" and use System rounding of the positions for X and Y to scroll to.
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
119
S
41
G
17
Posts: 2,211
Reputation: 19,634

Post » Sun May 17, 2015 4:37 pm

Thanks for that info, would you be so kind as to can you give me an example of how to execute the rounding?
I tried the other method of centering and it worked but I have no idea how to execute the rounding to see if this actually fixes the scrolling, sorry!
B
11
S
4
G
5
Posts: 171
Reputation: 2,446

Post » Fri May 22, 2015 5:12 am

Sorry for a late reply work3, been pretty busy this past week. I might be able to make an example over the weekend though!
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
119
S
41
G
17
Posts: 2,211
Reputation: 19,634

Post » Fri May 22, 2015 11:14 am

No need for apologies, any assistance is appreciated! - just to be clear I am just asking for a text example of the rounding expression, not any code!! :oops:
B
11
S
4
G
5
Posts: 171
Reputation: 2,446

Post » Sat May 23, 2015 11:01 pm

I wanted to see first hand how that suggestion would work out and it seems to actually make it a bit more jerky than even default scrolling, but I added another mode of scrolling to this cap for you to try: https://dl.dropboxusercontent.com/u/471 ... olling.cap

Keyboard 1 = Default (system) scrolling to Sprite.X and Sprite.Y
Keyboard 2 = Rounded (scrolling to Round(Sprite.X) and Round(Sprite.Y))
Keyboard 3 = Lerp

Lerp is a command where you use Lerp(Start, End, Percent) to get a value that is a percentage between the start and end.

Eg: Moving an object to 10% between an X position of 0 and 100, which is 10px, would be done by Sprite.X = Lerp(0, 10, 0.1) as 0.1 is 10%

For the scrolling, we use Lerp(Scroll, Sprite, 0.1) in general to always scroll to 10% of the difference between the current Scroll (X or Y) and Sprite (X or Y). When the sprite slows down I sped up the % to make it less jerky. I would definitely recommend experimenting more with an accelerated camera though if you find directly following the object is laggy, maybe even one where the camera only follows the player after they are a certain number of pixels away from the center.

Hope that helps!
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
119
S
41
G
17
Posts: 2,211
Reputation: 19,634

Post » Sun May 24, 2015 10:41 am

Thankyou SO much!

I will take a look at these and let you know my findings - another programmer showed me the rounding , and it was fine until the speed of my scroll started to decelerate..

I hope this will work!

regardless, again, thanks SO much for your assistance!!
B
11
S
4
G
5
Posts: 171
Reputation: 2,446

Post » Sun May 24, 2015 2:07 pm

Anytime! Hope it helps :)
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
119
S
41
G
17
Posts: 2,211
Reputation: 19,634

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests