Be a Supporter!

Collision detection code

  • 304 Views
  • 2 Replies
New Topic Respond to this Topic
Penboy
Penboy
  • Member since: Jun. 17, 2006
  • Offline.
Forum Stats
Member
Level 17
Artist
Collision detection code Mar. 30th, 2010 @ 06:24 AM Reply

I accidentally my whole hard drive causing me to loose all of my .fla's.

(

I'm making a game but I can't go to my .fla's to get the code I need. I need to know:

1. When instance 1 touches instance 2, game goes to frame x.
2. When instance 1 touches instance 3, instance 1 cannot move past instance 3 (like a wall).

So yeah, if anyone knows the AS2 for those two things that's be great.

Callum123456
Callum123456
  • Member since: Mar. 7, 2009
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to Collision detection code Mar. 30th, 2010 @ 08:32 AM Reply

Here.

Neo-13
Neo-13
  • Member since: Jun. 9, 2007
  • Offline.
Forum Stats
Member
Level 23
Programmer