Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Cram on December 23, 2011, 11:23:59 pm

Title: scrolling?
Post by: Cram on December 23, 2011, 11:23:59 pm
hi anyone can explain me how can i do a scrolling game like the impossible game? :)
(http://img259.imageshack.us/img259/9443/impossiblegame.gif) (http://imageshack.us/photo/my-images/259/impossiblegame.gif/)
Title: Re: scrolling?
Post by: chattahippie 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.
Title: Re: scrolling?
Post by: Cram on December 24, 2011, 12:06:54 am
ok thx i will try to to something with this :P
Title: Re: scrolling?
Post by: chattahippie 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))
Title: Re: scrolling?
Post by: Cram on December 24, 2011, 12:12:48 am
yeah i already know this but thanks :D
Title: Re: scrolling?
Post by: chattahippie on December 24, 2011, 12:14:24 am
Good luck. :D
BTW,
you can use Vertical +/- for vertical scrolling ;D
Title: Re: scrolling?
Post by: Cram on December 24, 2011, 12:22:20 am
eheh :P but can i make line outside the screen and use Horizontal -?
Title: Re: scrolling?
Post by: chattahippie on December 24, 2011, 12:22:49 am
No, you have to shift then draw the line
Title: Re: scrolling?
Post by: Cram on December 24, 2011, 12:24:11 am
hmm can you give me an exemple plz? :O
Title: Re: scrolling?
Post by: chattahippie on December 24, 2011, 12:25:04 am
Horizontal +
Rect(0,0,1,64)
DispGraph

That should do
Title: Re: scrolling?
Post by: saintrunner 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
Title: Re: scrolling?
Post by: epic7 on December 24, 2011, 08:38:24 pm
Or try a scrolling tilemapper :P
Title: Re: scrolling?
Post by: leafy 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.
Title: Re: scrolling?
Post by: saintrunner on December 24, 2011, 10:17:47 pm
but not impossible lol, ironically