Author Topic: scrolling?  (Read 5278 times)

0 Members and 1 Guest are viewing this topic.

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
scrolling?
« on: December 23, 2011, 11:23:59 pm »
hi anyone can explain me how can i do a scrolling game like the impossible game? :)

« Last Edit: December 23, 2011, 11:24:23 pm by Cram »

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: scrolling?
« Reply #1 on: December 23, 2011, 11:36:44 pm »
You could use these:
Horizontal +
Horizontal -
They shift the whole screen one pixel to the left/right.

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: scrolling?
« Reply #2 on: December 24, 2011, 12:06:54 am »
ok thx i will try to to something with this :P

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: scrolling?
« Reply #3 on: December 24, 2011, 12:08:04 am »
Make sure to remove any sprites you don't want shifted before you actually shift the screen (Pt-Change(x,y,pointer))

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: scrolling?
« Reply #4 on: December 24, 2011, 12:12:48 am »
yeah i already know this but thanks :D

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: scrolling?
« Reply #5 on: December 24, 2011, 12:14:24 am »
Good luck. :D
BTW,
you can use Vertical +/- for vertical scrolling ;D

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: scrolling?
« Reply #6 on: December 24, 2011, 12:22:20 am »
eheh :P but can i make line outside the screen and use Horizontal -?

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: scrolling?
« Reply #7 on: December 24, 2011, 12:22:49 am »
No, you have to shift then draw the line

Offline Cram

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +0/-0
    • View Profile
Re: scrolling?
« Reply #8 on: December 24, 2011, 12:24:11 am »
hmm can you give me an exemple plz? :O

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: scrolling?
« Reply #9 on: December 24, 2011, 12:25:04 am »
Horizontal +
Rect(0,0,1,64)
DispGraph

That should do

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: scrolling?
« Reply #10 on: December 24, 2011, 12:44:07 am »
or you can set your bottom line as like
:95->A
: Line(0,63,A,63)


then when ever you use your horizontal + you could add 1 to A....therefore extending the line :) I think that might work, so long as A is set to 95 outside of the loop

edit: wait nevermind!! It is easier to just draw the line over....I'm stupid sorry, lol
« Last Edit: December 24, 2011, 12:48:00 am by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: scrolling?
« Reply #11 on: December 24, 2011, 08:38:24 pm »
Or try a scrolling tilemapper :P

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: scrolling?
« Reply #12 on: December 24, 2011, 09:22:44 pm »
The Impossible game uses a chunk of map data and its own special scrolling routines to generate that (I think). Pretty complicated stuff.
In-progress: Graviter (...)

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: scrolling?
« Reply #13 on: December 24, 2011, 10:17:47 pm »
but not impossible lol, ironically
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES: