-
[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
-
Senior Member
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
-
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.
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|