How to scroll map with player?

Blitz3D Forums/Blitz3D Programming/How to scroll map with player?

Guy Fawkes(Posted 2012) [#1]
Hi all, using this code, and these 2 functions, how can I combine this tile scrolling demo, with these 2 functions which read from a file, and load the world, as opposed to reading from an image for loading the world?


Functions:





The tile demo:




Unless, someone has an easier to use example of scrolling a map when a player walks, and reading the map from a file, as opposed to a loadanimimage?


Thank you to all who help! :)


Kryzon(Posted 2012) [#2]
Yo. Quoting me from a thread you made:

Take that link to the BlitzCoder articles and have at them, especially the ones by Krylar.

Let's see where this information would lead you...

http://web.archive.org/web/20051122203122/http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=gamekrylar01282001.html

..."Moving sprites on tiled backgrounds"?! This seems interesting.

What I find to be awesome is that Web.Archives manages to snapshot the downloadable demos as well, so we can run the code in each of those articles as they were meant to.
Anyway, you can use the main article list to find the rest of them: http://web.archive.org/web/20051124131921/http://www.blitzcoder.com/articles.shtml


Guy Fawkes(Posted 2012) [#3]
::EDIT::


Thanks, Kryzon! :) For those of u who need help making a 2D RPG like me, I did a WAY-WAY-BACK of the waybackmachine link Kryzon kindly gave me, instead of 2007, I went back to 2004, and THIS is what I found:


Article:


http://web.archive.org/web/20040808051633/http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=krylar07192004002127.html



Example:



http://web.archive.org/web/20040808051633/http://www.blitzcoder.com/cgi-bin/articles/show_article2.pl?f=krylar07192004002127.html



Thanks again, Kryzon! :)

Last edited 2012