PDA

Click to See Complete Forum and Search --> : rpg


tonyp
Feb 22nd, 2000, 05:36 PM
how do you stop the man from walking over the trees and stuff and how do you see cordinates of a image???

Fox
Feb 22nd, 2000, 06:05 PM
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/

tonyp
Feb 22nd, 2000, 06:17 PM
there is no arrays.
the background is a image and the trees
are images and the man is a image.

Fox
Feb 23rd, 2000, 03:56 AM
: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.

KENNNY
Feb 23rd, 2000, 05:49 AM
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.