Tilesets & RPG maps

BlitzMax Forums/BlitzMax Programming/Tilesets & RPG maps

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here, this is how i have done it:

	'Draw map
	For Local layer:Int = 1 To 4
		DrawLayer(World, WorldX, WorldY, WorldZ, layer, player.x, player.y) 
	Next
	
	'Draw player
	player.Render(Int(player.x * tween + player.tx * (1.0 - tween)), Int(player.y * tween + player.ty * (1.0 - tween))) 
	
	For Local layer:Int = 6 To 7
		DrawLayer(World, WorldX, WorldY, WorldZ, layer, player.x, player.y) 
	Next

	'code goes here if player happens to be standing on a bridge (2nd level)

	For Local layer:Int = 9 To 9
		DrawLayer(World, WorldX, WorldY, WorldZ, layer, player.x, player.y) 
	Next


talking about it, i also want to add shadows. that would give me another bunch of layers :S



the problem is tough, that the trees are part of the background, so i cant render shadows dynamicly.
Anyway, i will also have movable trees, these are objects.