Parallaxing

BlitzMax Forums/BlitzMax Beginners Area/Parallaxing

Zacho(Posted 2009) [#1]
If I want to incorporate parallaxing into my game can I just call TileBlock and TileImage with different backgrounds?


GfK(Posted 2009) [#2]
If I want to incorporate parallaxing into my game can I just call TileBlock and TileImage with different backgrounds?
I wouldn't. For one, there is no TileBlock command. Also, TileImage is dependent on SetViewport, which doesn't work correctly on all hardware.


Zacho(Posted 2009) [#3]
Hm,...ok then

Well then I guess it is a time to take a trip to the function list!! Lol


I thought I could use TileBlock because a demo of BlitzBasic had it


Zacho(Posted 2009) [#4]
But isn't there a way to paralax? I've seen demos of people using paralaxing.


iprice(Posted 2009) [#5]
There are numerous ways to create parallax effects. The simplest method would be using a tile engine of some sort - there are loads of posts on here about tile maps. You could use one to display a single layer of a map and then use the TileImage underneath, but that isn't an ideal solution or just create maps with multiple layers. Either way, creating maps can be a laborious and tiresome exercise - the larger the more so!

Have a look at BlitzMax code for Mappy (IIRC) to create and display maps, including parallax.


Zacho(Posted 2009) [#6]
ok, i will! thanks