0

Hello, i started learn litle "Game-Developing", i download Tiled QT to create game map, but my question is, (Game will be in java)
How i make my character go to specifically positions, i mean, in map are some walls and playrs must not go above the image...

An idea is to daw a rectangle and create X/Y cordinates and decleare wich one playrs cant, so when player arrive to x/y it cant go more that way..

PS: Any good free tool to create MAPs? TiledQ seems good... idk...
soz for my english

Edited by Panathinaikos22: n/a

2
Contributors
1
Reply
3
Views
5 Years
Discussion Span
Last Post by thanatos1
0

you could create a "map" which is composed by several tiles (32x32 pixel images or whatever) and each tile could have a boolean variable that determines whether or not that particular tile is solid (if solid, nobody can walk on it, for example).

either that, or have an array called impasasble_tiles or something which contain int values (for example, tile_1 is grass, tile_2 is wall), so if the particular tile the player wants to go to is in the impassable_tiles array, then that means he cant go.

there are many ways to go about doing this.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.