Tiles

Blitz3D Forums/Blitz3D Beginners Area/Tiles

David819(Posted 2004) [#1]
Hi, how can i use the data command with a tiles set of 197 tiles?

Edit:

my code is below:

Global Tile_Map
Global Tiles=197

Graphics 800,600,0,2
SetBuffer BackBuffer()

Load_Graphics()

While Not KeyHit(1)
Cls
Render_Graphics()
Flip
Wend
End

Function Load_Graphics()
Tile_Map=LoadAnimImage("blocks1.bmp",32,32,0,197)
End Function

Function Render_Graphics()
DrawImage Tile_Map,0,0,2
End Function


SoggyP(Posted 2004) [#2]
Hi Folks,

Goober, I'm not sure what you're trying to acheive here. Can you explain a little more.

Thanks,

Jes


David819(Posted 2004) [#3]
ok, Well in gmae made in blitz like blitzanoid they have a tile images which they load of the block which the player will destroy and they use the data command to position the different block, what i wish to do is similar but with a scene which the play wont destroy but will walk on and such but i dont know how to do so.


WolRon(Posted 2004) [#4]
What you are saying doesn't make sense.

A DATA statement is used to store data values.
An example:
DATA 23, 32, 544, 0, 12, 545, 5
DATA 233, 690, 3, 66, 277, 2, 12
they use the data command to position the different block
The above statement sounds like you meant to say:
they use the (DRAWIMAGE, DRAWBLOCK, etc.) command to position the different block

Please be more specific. Try including more code or describing what you want better.


BobR3D(Posted 2004) [#5]
There are tons of tutorials here and on BlitzCoder which tell how to create a tilemap based 2D game.

Check in the Code Archives to find them.


BobR3D(Posted 2004) [#6]
WR- He wants to store his tilemap in DATA statements, to be read into an array of tiles at runtime.

He just doesn't know how to ask what he wants to know.


David819(Posted 2004) [#7]
thanks for the help, i found out how to get it to work thanks again for all the help.