Omnimaga
Calculator Community => TI Calculators => Axe => Topic started 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/)
-
You could use these:
Horizontal +
Horizontal -
They shift the whole screen one pixel to the left/right.
-
ok thx i will try to to something with this :P
-
Make sure to remove any sprites you don't want shifted before you actually shift the screen (Pt-Change(x,y,pointer))
-
yeah i already know this but thanks :D
-
Good luck. :D
BTW,
you can use Vertical +/- for vertical scrolling ;D
-
eheh :P but can i make line outside the screen and use Horizontal -?
-
No, you have to shift then draw the line
-
hmm can you give me an exemple plz? :O
-
Horizontal +
Rect(0,0,1,64)
DispGraph
That should do
-
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
-
Or try a scrolling tilemapper :P
-
The Impossible game uses a chunk of map data and its own special scrolling routines to generate that (I think). Pretty complicated stuff.
-
but not impossible lol, ironically