Author Topic: Smooth scrolling in Axe  (Read 2477 times)

0 Members and 1 Guest are viewing this topic.

_player1537

  • Guest
Smooth scrolling in Axe
« on: May 03, 2010, 12:07:16 am »
For my Rally-X game, I'm going to try and add smooth scrolling, how would I go about doing that though?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Smooth scrolling in Axe
« Reply #1 on: May 03, 2010, 12:16:21 am »
You basically have to draw a few tiles partially off the screen as you scroll.

ztrumpet made a smooth scrolling engine with 16x16 sprites, you can adapt it to 8x8 easily though.
http://ourl.ca/4161/79940

I think I recall seeing some other people making them too, but I can't seem to find any.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Smooth scrolling in Axe
« Reply #2 on: May 03, 2010, 01:34:33 am »
I should really give smooth scrolling a try someday. First, though, collision detection :P

Note that if it's too slow you may have to scroll every 2 or 4 pixels, so it might not be "smooth" scrolling anymore

And if it scrolls way too fast, you'Ll need to slow it down and still make it scroll every 2 or 4 pixels, because the LCD blurs a lot so if stuff scrolls too fast you barely see anything x.x
« Last Edit: May 03, 2010, 01:35:42 am by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)