⌂ YolkfolkThe Dizzy Fansite
Community discussion

Smooth Scrolling Demonstration

Started by Noggin the Nog on 24 July 2015 • 16,823 views

25 posts
#85860
MY PREVIOUS POST IS TOTAL (INSERT YOUR OWN CHOICE OF WORD)!!!

Using a status check to turn horizontal/vertical scrolling on and off just using Alex's viewport function does work ...so does Simon's backdrop code (providing you initially define portx and y) but it's more like a nightmare!!!

Start the game with the status set to 'no scrolling' and not setting the viewportmode to 1 just makes the background tile center around Dizzy as he walks ...the rooms still act like the viewportmode is turned off.

Then, when it all seems to work fine ..switching the vertical scrolling on for Dizzy to go down a hill makes him vanish when he leaves the 'room' and the bottom half of the room he's just left vanishes too so that it just looks like someones sliced off the top of the hill (cos the background is still following Dizzy around).

Oh well, looks like I should leave proper tech stuff to the adults.

PS - this is my face when I looked at Colin's scrolling code in 'A Pirate's Life' {yolkfolk}:eek:
👍 0
#88055
You've really helped me out with reaching the end of the screen though so thanks for that! I wanted to make Dizzy continue to the edge like you've done and I couldn't work it out. Just changing the room's properties is something I'd never have thought of. I tried using colliders to change G_Viewportmode, and it was weird; it would work once and then get all jerky, or it would stop working altogether.
👍 0
#88057
Simon, I think you're a bit too quick to thank vondes. Look at Andy's first post on this thread, the last paragraph is identical to what vondes has posted. Also vondes has done the same on another thread.

My initial reaction the other day when I first read his posts was that he had just cut and pasted a previous post and then forgotten to add his comments, but after no edits for a couple of days I'm starting to wonder what's going on {yolkfolk}:scratch:
👍 0