Intersects


i have game small monster fooling around between small houses. should not capable walk trough houses , because of use intersects avoid different sprites buildings are. every sprite downwards middle of sceen, can walk trough, not sides top. why?

i assume sprite(3) monster , sprite(2) house. if case seem monster "attacks" house either left or top, moved further house. continue until monster exits south east.

the problem +5 have on end of each of lines of code.

what want capture monsters location first, try , move him in whatever direction walking. if results in intersect, move him captured location , pick new direction.

hope helps.


More discussions in Director Basics


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums