how do you stop the man from walking over the trees and stuff and how do you see cordinates of a image???
Printable View
how do you stop the man from walking over the trees and stuff and how do you see cordinates of a image???
If you've stored your level-map in an array you can easy check if the tile where the player stands collides. (If you have them in an array you also know where this picture is).
Demo projects:
http://members.xoom.com/Der_Zirkel/
there is no arrays.
the background is a image and the trees
are images and the man is a image.
:o Bad Idea
Well, you can make this simple collision checking if any image collides with the player... I'm sure there are already some answers for this question on this board.
indeed
u need a 2d array like Map(100, 100) as TileData..
i would have type with tile data in it
eg
Type TileData
Walkable as integer
etc.....
end type
I'm making an rts so i'm not too hot on rpg making, but a lot of the engine is the same.