A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [Help] Blocking a symbol (making a wall)

  1. #1
    Member
    Join Date
    Dec 2003
    Location
    Here.
    Posts
    48

    [Help] Blocking a symbol (making a wall)

    I was wondering if anyone had some coding they wouldn't mind sharing on how to block a character. Like, if it was a maze, so the character could not just walk through the walls.

    Thanks,
    A random stupid n00b
    Ding.

  2. #2
    Senior Member mr_shotgun_2000's Avatar
    Join Date
    Jun 2002
    Posts
    204
    well if you are a newb at this then i would suggest not going into tilebased stuff for this yet. you could use a simple hitTest, that should work! try out marmotte's open sources for his zelda opensource or goto gotAndplay.it, they have quite good tutorials too

  3. #3
    Member
    Join Date
    Dec 2003
    Location
    Here.
    Posts
    48
    I don't exactly mean for just tile based...

    I am really asking more so I can prevent the character from going off the screen, the tile-based maze thing was just an example.
    Ding.

  4. #4
    Senior Member mr_shotgun_2000's Avatar
    Join Date
    Jun 2002
    Posts
    204
    well you could use a world-warp code or a hitTest with another movieClip.

    by a world-warp code I mean, check if the x and y values are within the stage, if not set them to one end or something...
    Last edited by mr_shotgun_2000; 01-22-2004 at 05:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center