2D Scrolling

Blitz3D Forums/Blitz3D Beginners Area/2D Scrolling

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I think I might have found myself an answer

This is my image
m\map=CreateImage(32,32)

SetBuffer ImageBuffer(m\map)
For y1 = 0 To 1
	For x1 = 0 To 1
		Color 90,90,0
		Rect x1*32,y1*32,32,32,0
	Next
Next
SetBuffer BackBuffer()


and I use
TileImage m\map
to make it infinte

I have it so the x and y coords of the image are controlled with the mousex and mousey but I could change that to something else to scroll the map around. The placed tiles seem to move around with the coords so there's some possibilities here... I'll try some things out and ask for more help if I need to.

If it's an infinite grid, I guess I wouldn't have to move the actual grid itself.