Walls, or even boundaries, these are impossible to find

  • Makksor
  • Born
  • Born
  • No Avatar
  • Joined: Jun 04, 2006
  • Posts: 2
  • Loc: Belgium
  • Status: Offline

Post June 13th, 2006, 11:53 am

Ok, heres the thing. I searched everwery to find just anything about walls or boundaries. I couldn't find them. send me the script if you have one, and if you can, don't let enemies look through them.
note : my game is like gameboy zelda or pokemon, you see your character from up
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 13th, 2006, 11:53 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post June 13th, 2006, 12:39 pm

be more specific. You want walls so that you cant go through them or walls that enemies cant look through them?
u said it`s the second one, and if so ... you'll need a matrix of the map with all the objects.
something like
001000100
000020100
000000104
000000100
300000000

where 1 is wall, 2 is your character, 3 is enemy type A and 4 enemy type B.

in that matrix check the line between the enemy and your character and if it intersect the code for wall, then it cant see you. if i'll remember the site where i seen more explanations about this kind of stuff, i`ll post it here. But now is show time, Brasil - Croatia.

later edit:
ok, here you go
google search for: game programming 2d maps and see what u can find
i came up with this one:
game programming
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 38 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.