Re: Re : scroll ( anyone )

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Ferdinand,


>Thanks Lewis . Your idea can work , but I think I have a hole new idea .

Well, I'm not sure I'd call it a whole new idea since it
is somewhat similar to what I was suggesting.


>code :
>
>map = {tile,tile,tile,tile}
>a = 1
>
>display_image({10,10} map[a])
>
>if get_key() = 333 then
>   a = a+1
>  elsif get_key() = 331 then
>   a = a-1
>end if
>
>end code
>
>Well , the code will look something like this . If anyone wants to try to
>work out a way to use my creation , please do . If you do , could you
>please just give me a copy of your program ? I can`t help it , i`m a lazy
>boy . Sometimes I don`t even feel like writeing a email ! I like to work
>out code but I`m just to lazy to type it in . Thanks to anyone who listened
>to my email .
>
>Ferdinand

LOL, I may not have time to write you a program since what
you are suggesting uses tiles, but I might too. Anyway here
is revised pseudo-code:


pos = {100,50} -- on a world of size {200,100}
do while ESC is not pressed...
  if right key pressed then
    pos[x] += 1
  if left key pressed then
    pos[x] -= 1
  display position = screen center - pos
  display images using display position
loop again

hope this is clearer,
Lewis Townsend

PS: if I DO write you some code, I'll use Neil for
the graphics since I'm more used to it.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu